]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: quote test glob so /bin/sh delegates to Node
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 3 Mar 2026 18:09:09 +0000 (19:09 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 3 Mar 2026 18:09:09 +0000 (19:09 +0100)
The shell /bin/sh does not support recursive ** globs.
Only 18/65 test files were running. Quoting the
pattern lets Node resolve it, running all 65 files.

package.json

index aa3d4b8889fa1e8a002f00ded632858c03419867..9b35e7ead56ed7750aac4c6f054f90ceafd9ef6d 100644 (file)
@@ -68,9 +68,9 @@
     "lint": "cross-env TIMING=1 eslint --cache src tests scripts ./*.js ./*.ts",
     "lint:fix": "cross-env TIMING=1 eslint --cache --fix src tests scripts ./*.js ./*.ts",
     "format": "prettier --cache --write .; eslint --cache --fix src tests scripts ./*.js ./*.ts",
-    "test": "node --import tsx --test --test-force-exit tests/**/*.test.ts",
-    "test:debug": "node --import tsx --test --inspect tests/**/*.test.ts",
-    "test:coverage": "mkdir -p coverage && node --import tsx --test --test-force-exit --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info tests/**/*.test.ts",
+    "test": "node --import tsx --test --test-force-exit 'tests/**/*.test.ts'",
+    "test:debug": "node --import tsx --test --inspect 'tests/**/*.test.ts'",
+    "test:coverage": "mkdir -p coverage && node --import tsx --test --test-force-exit --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info 'tests/**/*.test.ts'",
     "clinic:clean": "clinic clean",
     "sea": "pnpm exec rimraf ./dist/evse-simulator ./dist/evse-simulator.blob && node --experimental-sea-config sea-config.json && pnpm dlx ncp $(volta which node || n which lts || nvm which node || command -v node) ./dist/evse-simulator && pnpm dlx postject ./dist/evse-simulator NODE_SEA_BLOB ./dist/evse-simulator.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 && pnpm exec rimraf ./dist/evse-simulator.blob"
   },