forked from yournextstore/yournextstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
29 lines (28 loc) · 831 Bytes
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import react from "@vitejs/plugin-react";
import tsConfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore -- throws Excessive stack depth comparing types
export default defineConfig({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore -- types mismatch between versions
plugins: [tsConfigPaths(), react()],
test: {
globals: true,
passWithNoTests: true,
setupFiles: "./src/setup-tests.ts",
css: false,
outputFile: {
json: "coverage/report.json",
},
coverage: {
reporter: ["text", "json", "html", "text-summary"],
},
clearMocks: true,
mockReset: true,
restoreMocks: true,
unstubGlobals: true,
unstubEnvs: true,
include: ["**/?(*.)test.?(c|m)[jt]s?(x)"],
},
});