mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-30 00:50:48 +08:00
25 lines
596 B
JavaScript
25 lines
596 B
JavaScript
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import viteConfig from "./vite.config.js";
|
|
|
|
export default defineConfig((configEnv) =>
|
|
mergeConfig(
|
|
viteConfig(configEnv),
|
|
defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
css: {
|
|
modules: {
|
|
classNameStrategy: "non-scoped",
|
|
},
|
|
},
|
|
setupFiles: ["src/vitest.setup.ts"],
|
|
coverage: {
|
|
reporter: ["html", "json"],
|
|
include: ["src/"],
|
|
exclude: ["src/**/*.{d,test}.{ts,tsx}", "src/utils/test.ts"],
|
|
},
|
|
},
|
|
}),
|
|
),
|
|
);
|