This commit is contained in:
Chuck1sn
2025-05-14 10:16:48 +08:00
commit 3cd59337e7
220 changed files with 23768 additions and 0 deletions

26
frontend/vitest.config.ts Normal file
View File

@@ -0,0 +1,26 @@
import { fileURLToPath } from "node:url";
import { configDefaults, defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config";
export default defineConfig(({ command, mode }) => {
return mergeConfig(
{
test: {
inspectBrk: false,
fileParallelism: true,
testTimeout: 0,
exclude: [...configDefaults.exclude, "e2e/**"],
root: fileURLToPath(new URL("./", import.meta.url)),
browser: {
enabled: true,
headless: false,
provider: "playwright",
// https://vitest.dev/guide/browser/playwright
instances: [{ browser: "chromium" }],
screenshotFailures: false,
},
},
},
viteConfig({ mode, command }),
);
});