mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-13 21:27:19 +08:00
27 lines
698 B
TypeScript
27 lines
698 B
TypeScript
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 }),
|
|
);
|
|
});
|