mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Changed jasmine settings and added tsconfig for specs
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,3 +7,5 @@ certificates/
|
|||||||
*.js
|
*.js
|
||||||
lib/
|
lib/
|
||||||
examples/build
|
examples/build
|
||||||
|
spec/**/*.js
|
||||||
|
spec/**/*.js.map
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
"build:all": "npm run build:src && npm run build:examples && npm run build:spec",
|
"build:all": "npm run build:src && npm run build:examples && npm run build:spec",
|
||||||
"build:src": "rm -rf ./lib && npx tsc -p tsconfig.dist.json",
|
"build:src": "rm -rf ./lib && npx tsc -p tsconfig.dist.json",
|
||||||
"build:examples": "cd examples && npm run build",
|
"build:examples": "cd examples && npm run build",
|
||||||
"build:spec": "rm -rf ./spec/*.js && npx tsc",
|
"build:spec": "rm -rf ./spec/*.js && rm -rf ./spec/*.js.map && npx tsc -p tsconfig.spec.json",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"test": "npm run build:spec && jasmine spec/*.js",
|
"test": "npm run build:spec && npx jasmine",
|
||||||
"example": "npm run build:src && npm --prefix examples run example"
|
"example": "npm run build:src && npm --prefix examples run example"
|
||||||
},
|
},
|
||||||
"author": "Alexander Patrick Cerutti",
|
"author": "Alexander Patrick Cerutti",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"spec_dir": "spec",
|
"spec_dir": "spec",
|
||||||
"spec_files": [
|
"spec_files": [
|
||||||
"**/index.js"
|
"**/*.js"
|
||||||
],
|
],
|
||||||
"stopSpecOnExpectationFailure": false,
|
"stopSpecOnExpectationFailure": false,
|
||||||
"random": true
|
"random": true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { splitBufferBundle } from "../lib/utils";
|
import { splitBufferBundle } from "../lib/utils";
|
||||||
import type { BundleUnit } from "../src/schema";
|
import type { BundleUnit } from "../lib/schema";
|
||||||
|
|
||||||
describe("splitBufferBundle", () => {
|
describe("splitBufferBundle", () => {
|
||||||
it("should split the bundle in language-organized files buffers and normal files with valid bundleUnit passed", () => {
|
it("should split the bundle in language-organized files buffers and normal files with valid bundleUnit passed", () => {
|
||||||
|
|||||||
9
tsconfig.spec.json
Normal file
9
tsconfig.spec.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"sourceMap": true
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"spec/**/*",
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user