load
This commit is contained in:
30
vitest.config.ts
Normal file
30
vitest.config.ts
Normal file
@@ -0,0 +1,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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user