Skip to content

Commit

Permalink
jest: update test scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 8, 2022
1 parent 3242319 commit 41d1096
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion example/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"watch": "tsbb watch --disable-babel --file-names src/index.ts --file-names src/main.ts",
"build": "tsbb build --disable-babel --file-names src/index.ts --file-names src/main.ts",
"test": "npm run build && tsbb test",
"coverage": "npm run build && tsbb test --coverage"
"coverage": "npm run build && tsbb test --coverage --bail"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion example/express-typeorm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "tsbb watch --entry ./src/main.ts --no-esm",
"build": "tsbb build --entry ./src/main.ts --no-esm",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"author": "jaywcjlove",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion example/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "tsbb watch --entry ./src/app.ts --no-esm",
"build": "tsbb build --entry ./src/app.ts --no-esm",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion example/hapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "tsbb watch --entry ./src/app.ts --no-esm",
"build": "tsbb build --entry ./src/app.ts --no-esm",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion example/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"watch": "tsbb watch --entry ./src/app.ts --no-esm",
"build": "tsbb build --entry ./src/app.ts --no-esm",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion example/react-component-tsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"css:watch": "compile-less -d src -o esm --watch",
"css:build:dist": "compile-less -d src --combine lib/dist.css --rm-global",
"test": "tsbb test",
"coverage": "tsbb test --coverage",
"coverage": "tsbb test --coverage --bail",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion example/react-component-tsx/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"noEmit": true
"noEmit": true,
"types": ["jest", "node"]
},
"include": ["src"]
}
2 changes: 1 addition & 1 deletion example/react-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"css:watch": "compile-less -d src -o esm --watch",
"css:build:dist": "compile-less -d src --combine dist/markdown-editor.css --rm-global",
"test": "tsbb test --env=jsdom",
"coverage": "tsbb test --env=jsdom --coverage",
"coverage": "tsbb test --env=jsdom --coverage --bail",
"start": "parcel website/index.html",
"doc": "parcel build website/index.html --dist-dir doc"
},
Expand Down
2 changes: 1 addition & 1 deletion example/transform-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": "tsbb watch --disable-babel-option --no-esm",
"build": "tsbb build --disable-babel-option --no-esm",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion example/umd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": "tsbb watch --no-esm --disable-babel",
"build": "tsbb build --no-esm --disable-babel",
"test": "tsbb test",
"coverage": "tsbb test --coverage"
"coverage": "tsbb test --coverage --bail"
},
"keywords": [],
"license": "MIT",
Expand Down

0 comments on commit 41d1096

Please sign in to comment.