From 51817af032e1f96bf66a86e268ee3f26261c29cd Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Wed, 27 May 2026 14:22:50 -0600 Subject: [PATCH] test: stop skipping the report/web unit suites in test:unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test:unit globbed `./src/*.test.ts ./src/**/*.test.ts`, but `bun run` executes package scripts via /bin/sh (no globstar), so the pattern stopped a couple directories deep and silently skipped every *.test.ts under src/report/web — 4 files / 18 tests, all the report analytics suites. Let bun discover tests natively and ignore the vitest browser suite via its --path-ignore-patterns flag. test:unit now runs 26 files (134 tests), up from 22. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c664c42..d6239b9 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "scripts": { "start": "bun run build:report-web && bun run src/index.ts", "test": "bun run test:unit && bun run test:browser", - "test:unit": "bun run build:report-web && bun test ./src/*.test.ts ./src/**/*.test.ts", + "test:unit": "bun run build:report-web && bun test ./src --path-ignore-patterns='**/*.browser.test.tsx'", "test:browser": "vitest run", "typecheck": "bun run build:report-web && tsc --noEmit", "lint": "eslint . --max-warnings 0 --cache",