From ce6b1563cd3f20b261cad78dd1d294944bd848d3 Mon Sep 17 00:00:00 2001 From: Giancarmine Salucci Date: Wed, 9 Sep 2026 23:13:43 +0200 Subject: [PATCH] fix: npm test script fails with bare directory arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit \`node --test tests/\` throws MODULE_NOT_FOUND on this Node CLI (it resolves the bare directory as a CommonJS entry module instead of a test-runner glob) — this was masked locally all session because every manual verification used \`node --test tests/*.test.mjs\` directly, never the actual \`npm test\` script. CI caught it on the first real run. Fixed package.json's test script to use the explicit glob. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db7968f..df62f8e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ ], "scripts": { "validate": "node scripts/validate.mjs", - "test": "node --test tests/", + "test": "node --test tests/*.test.mjs", "lh": "node src/cli.mjs", "onboard": "node scripts/onboard.mjs" },