fix: stop test runs from reloading the page under next dev

This commit is contained in:
Linus Rath
2026-10-30 00:04:04 +01:00
parent 2c34afce2d
commit 6b73b9253b
+5
View File
@@ -1,5 +1,6 @@
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import os from 'os';
import path from 'path';
export default defineConfig({
@@ -15,6 +16,10 @@ export default defineConfig({
// get collected too.
// scripts/lite/smoke/** is the Playwright smoke for the static Lite export.
exclude: ['integration/**', 'examples/**', 'repos/**', '**/node_modules/**', '.next/**', 'out/**', 'scripts/lite/smoke/**', 'scripts/perf-guard/**', 'scripts/a11y-guard/**'],
// The default node_modules/.vitest-cache sits inside the tree Turbopack
// watches, so every test run made a running `next dev` rebuild and reload
// the open page about once a second.
fsModuleCachePath: path.join(os.tmpdir(), 'bulwark-vitest-cache'),
},
resolve: {
alias: {