forked from saleor/saleor-app-payment-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
30 lines (29 loc) · 855 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
30
import react from "@vitejs/plugin-react";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
import tsConfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
// eslint-disable-next-line import/no-default-export
export default defineConfig({
plugins: [tsConfigPaths(), vanillaExtractPlugin(), react()],
test: {
globals: true,
passWithNoTests: true,
environment: "jsdom",
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)"],
useAtomics: true,
},
});