From 4a3394cf8c09b4ab68f2c7cfdbdc43f72b52558a Mon Sep 17 00:00:00 2001 From: Stefan Hildebrandt <695494+hildebrandttk@users.noreply.github.com> Date: Sat, 11 Jul 2026 11:02:13 +0200 Subject: [PATCH] test(vitest): exclude integration/ and examples/ Playwright specs vitest was collecting the dockerized integration Playwright specs (run via `npm run test:integration`) and the untracked examples/ sample code, which fail under the vitest runner. Exclude both so `npm test` only runs the unit suite. --- vitest.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index e6de1b87..27ee8288 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -8,7 +8,10 @@ export default defineConfig({ environment: 'jsdom', globals: true, setupFiles: ['./vitest.setup.ts'], - exclude: ['e2e/**', 'node_modules/**', '.next/**'], + // integration/** is the dockerized Playwright suite (run via + // `npm run test:integration`); examples/** is untracked sample code. Both + // use their own runners and must not be collected by vitest. + exclude: ['e2e/**', 'integration/**', 'examples/**', 'node_modules/**', '.next/**'], }, resolve: { alias: {