element-call-Github/vitest.config.js

25 lines
555 B
JavaScript
Raw Normal View History

2024-02-16 11:34:59 +08:00
import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config";
2024-02-16 11:34:59 +08:00
export default defineConfig((configEnv) =>
mergeConfig(
viteConfig(configEnv),
defineConfig({
test: {
globals: true,
environment: "jsdom",
css: {
modules: {
classNameStrategy: "non-scoped",
},
},
include: ["test/**/*-test.[jt]s?(x)"],
coverage: {
reporter: ["text", "html"],
exclude: ["node_modules/"],
},
},
}),
),
);