31 lines
855 B
TypeScript
31 lines
855 B
TypeScript
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,
|
|
},
|
|
});
|