mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-05 11:47:32 +00:00
init
This commit is contained in:
26
frontend/vitest.config.ts
Normal file
26
frontend/vitest.config.ts
Normal 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 }),
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user