Files
element-call/vitest.config.ts
T

34 lines
860 B
TypeScript
Raw Normal View History

2024-02-15 22:34:59 -05:00
import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config";
2024-02-02 18:54:50 -06:00
2024-02-15 22:34:59 -05:00
export default defineConfig((configEnv) =>
mergeConfig(
viteConfig(configEnv),
defineConfig({
test: {
environment: "jsdom",
css: {
modules: {
classNameStrategy: "non-scoped",
},
},
2026-04-17 18:21:48 +02:00
setupFiles: ["src/vitest.setup.ts"],
include: ["src/**/*.test.ts", "src/**/*.test.tsx"],
2024-02-15 22:34:59 -05:00
coverage: {
reporter: ["html", "json"],
2026-04-17 11:13:41 +02:00
include: ["src/**/*.{ts,tsx,js,jsx}"],
exclude: [
2026-04-17 11:13:41 +02:00
"src/**/*.md",
2026-04-08 16:38:52 +02:00
"src/**/*.{d,test,stories}.{ts,tsx}",
"src/utils/test.ts",
"src/utils/test-viewmodel.ts",
"src/utils/test-fixtures.ts",
"playwright/**",
],
2024-02-15 22:34:59 -05:00
},
},
}),
),
);