Skip to content

Commit d7fa3a9

Browse files
committed
tests: narrow unit test/watch globs to tests/unit/test-*.mjs
Restrict node --test patterns so only files named test-*.mjs are executed, preventing unintended files from being picked up.
1 parent a08fdfe commit d7fa3a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"health": "curl -s http://localhost:13331/api/health | json_pp || curl -s http://localhost:13331/api/health",
1111
"backup": "mkdir -p backups && cp mtt-*.json backups/backup-$(date +%Y%m%d-%H%M%S)/ 2>/dev/null || true",
1212
"test": "npm run test:api && npm run test:e2e",
13-
"test:unit": "node --test tests/unit/**/*.mjs",
13+
"test:unit": "node --test tests/unit/test-*.mjs",
1414
"test:e2e": "node tests/e2e/test-ui-complete.cjs",
1515
"test:api": "node tests/e2e/test-backend-api.cjs",
1616
"test:headless": "HEADLESS=true node tests/e2e/test-ui-complete.cjs",
17-
"test:watch": "node --test --watch tests/unit/**/*.mjs"
17+
"test:watch": "node --test --watch tests/unit/test-*.mjs"
1818
},
1919
"keywords": [
2020
"time-tracker",

0 commit comments

Comments
 (0)