From 23dafc8bd1f7c7d21a8022af980981340427b05f Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Sat, 28 Nov 2026 16:27:53 +0000 Subject: [PATCH] test: run the top-level test files in npm test Under sh, `test/**/*.test.ts` matches only the files one folder down. So `npm test`, which CI runs on every Node version in the matrix, did not run test/connection-string.test.ts. Only the coverage job ran it. Add `test/*.test.ts`, as test:coverage already does. Keep both patterns as shell globs, because Node 20 does not expand a quoted glob in --test. Co-Authored-By: Claude Opus 5.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ac34846..a1efa15 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "prepare": "tsc", "build": "tsc", "lint": "eslint ./src ./test", - "test": "tsx --test test/**/*.test.ts", + "test": "tsx --test test/**/*.test.ts test/*.test.ts", "test:coverage": "c8 --reporter=cobertura -- tsx --test test/**/*.test.ts test/*.test.ts", "test:workflow": "npm run test --silent" },