fix: vitest

This commit is contained in:
imccyu
2026-08-13 01:35:47 +08:00
parent 4563086a94
commit 8bf7b4cc8e
+5 -2
View File
@@ -1,6 +1,6 @@
import tsconfigPaths from 'vite-tsconfig-paths' import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config' import { defineConfig } from 'vitest/config'
import { vitestExecArgv } from './vitest.shared.ts' import { standardDecoratorPlugin, vitestExecArgv } from './vitest.shared.ts'
// Web browser lane: real host entry points, built-client interaction snapshots, // Web browser lane: real host entry points, built-client interaction snapshots,
// and replayed keyless e2e scenarios outside the unit/e2e includes. Linux PR CI // and replayed keyless e2e scenarios outside the unit/e2e includes. Linux PR CI
@@ -17,7 +17,10 @@ export default defineConfig({
// Same resolution note as vitest.config.ts: the tsconfig.base.json paths // Same resolution note as vitest.config.ts: the tsconfig.base.json paths
// facade has no include (match-all), so apps/web/tests resolves bare // facade has no include (match-all), so apps/web/tests resolves bare
// workspace imports to source like every other lane. // workspace imports to source like every other lane.
plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] })], plugins: [
tsconfigPaths({ projects: ['./tsconfig.base.json'] }),
standardDecoratorPlugin(),
],
test: { test: {
execArgv: vitestExecArgv, execArgv: vitestExecArgv,
include: [ include: [