Skip to content

Commit ea1c347

Browse files
authored
Add test watch script (#3551)
Refines #3548. See #3548 (comment)
1 parent 34276c4 commit ea1c347

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ jobs:
142142
- name: Install Dependencies
143143
run: npm ci --ignore-scripts
144144

145-
- name: Run Tests
146-
run: npm run testonly
145+
- name: Run Tests with coverage
146+
run: npm run testonly:cover
147147

148148
build-npm-dist:
149149
name: Build 'npmDist' artifact

Diff for: package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@
3333
"fuzzonly": "mocha --full-trace src/**/__tests__/**/*-fuzz.ts",
3434
"changelog": "node resources/gen-changelog.js",
3535
"benchmark": "node benchmark/benchmark.js",
36-
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling && npm run check:integrations",
36+
"test": "npm run lint && npm run check && npm run testonly:cover && npm run prettier:check && npm run check:spelling && npm run check:integrations",
3737
"lint": "eslint --cache --max-warnings 0 .",
3838
"check": "tsc --pretty",
39-
"testonly": "c8 mocha --full-trace src/**/__tests__/**/*-test.ts",
39+
"testonly": "mocha --full-trace src/**/__tests__/**/*-test.ts",
40+
"testonly:cover": "c8 npm run testonly",
41+
"testonly:watch": "npm run testonly -- --watch",
4042
"prettier": "prettier --write --list-different .",
4143
"prettier:check": "prettier --check .",
4244
"check:spelling": "cspell --cache --no-progress '**/*'",

0 commit comments

Comments
 (0)