fix: use shell-expanded globs in test scripts (CI portability)
node's own '**' glob expansion for --test worked on local node 22.23 but not in CI (node 20/22 runners) — 'Could not find test/**/*.test.js'. Use plain single-star globs the shell expands instead; test files are exactly one level under test/unit and test/integration. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -14,9 +14,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./bin/www",
|
"start": "node ./bin/www",
|
||||||
"dev": "npx nodemon --ignore public/ ./bin/www",
|
"dev": "npx nodemon --ignore public/ ./bin/www",
|
||||||
"test": "NODE_ENV=test node --test --test-force-exit 'test/**/*.test.js'",
|
"test": "NODE_ENV=test node --test --test-force-exit test/unit/*.test.js test/integration/*.test.js",
|
||||||
"test:unit": "NODE_ENV=test node --test --test-force-exit 'test/unit/**/*.test.js'",
|
"test:unit": "NODE_ENV=test node --test --test-force-exit test/unit/*.test.js",
|
||||||
"test:integration": "NODE_ENV=test node --test --test-force-exit 'test/integration/**/*.test.js'"
|
"test:integration": "NODE_ENV=test node --test --test-force-exit test/integration/*.test.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simpleworkjs/conf": "^1.2.0",
|
"@simpleworkjs/conf": "^1.2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user