2024-02-16 11:34:59 +08:00
|
|
|
import { defineConfig, mergeConfig } from "vitest/config";
|
2024-08-28 08:06:57 +08:00
|
|
|
import viteConfig from "./vite.config.js";
|
2024-02-03 08:54:50 +08:00
|
|
|
|
2024-02-16 11:34:59 +08:00
|
|
|
export default defineConfig((configEnv) =>
|
|
|
|
mergeConfig(
|
|
|
|
viteConfig(configEnv),
|
|
|
|
defineConfig({
|
|
|
|
test: {
|
|
|
|
environment: "jsdom",
|
|
|
|
css: {
|
|
|
|
modules: {
|
|
|
|
classNameStrategy: "non-scoped",
|
|
|
|
},
|
|
|
|
},
|
2024-08-27 21:45:39 +08:00
|
|
|
setupFiles: ["src/vitest.setup.ts"],
|
2024-02-16 11:34:59 +08:00
|
|
|
coverage: {
|
2024-08-27 21:45:39 +08:00
|
|
|
reporter: ["html", "json"],
|
|
|
|
include: ["src/"],
|
2024-02-16 11:34:59 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
);
|