Skip to content

Commit c56eede

Browse files
committed
Target test modules with a glob.
This avoids the Node.js test runner automatically attempting to run all modules in the `test` directory.
1 parent 420209b commit c56eede

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- Updated the package scripts:
3434
- Reordered and renamed scripts.
3535
- Replaced `npm run` with `node --run`.
36+
- Target test modules with a glob.
3637
- Updated GitHub Actions CI config:
3738
- Updated workflow triggers.
3839
- Run checks in separate jobs.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"prettier": "prettier -c .",
7474
"eslint": "eslint",
7575
"types": "tsc -p jsconfig.json",
76-
"test": "coverage-node --test-reporter=spec --test",
76+
"test": "coverage-node --test-reporter=spec --test *.test.mjs",
7777
"check": "node --run prettier && node --run eslint && node --run types && node --run test",
7878
"prepublishOnly": "node --run check"
7979
}

0 commit comments

Comments
 (0)