From 9ee5b4bbe0630c7692a5a78774ec63cebc43d970 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Thu, 23 Jul 2026 16:20:58 -0400 Subject: [PATCH] fix: use shell-expanded globs in test scripts (CI portability) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- nodejs/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodejs/package.json b/nodejs/package.json index 15f2540..903d2b3 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -14,9 +14,9 @@ "scripts": { "start": "node ./bin/www", "dev": "npx nodemon --ignore public/ ./bin/www", - "test": "NODE_ENV=test node --test --test-force-exit 'test/**/*.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": "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:integration": "NODE_ENV=test node --test --test-force-exit test/integration/*.test.js" }, "dependencies": { "@simpleworkjs/conf": "^1.2.0",