Open History to see the last commit
1import { defineConfig } from "vitest/config"
2import react from "@vitejs/plugin-react"
3
4export default defineConfig({
5 plugins: [react()],
6 test: {
7 environment: `jsdom`,
8 globals: true,
9 include: [`src/**/*.test.{ts,tsx}`, `tests/**/*.test.{ts,tsx}`],
10 exclude: [`node_modules`, `dist`, `tests/e2e/**`],
11 setupFiles: [`./tests/setup.ts`],
12 coverage: {
13 provider: `v8`,
14 reporter: [`text`, `json`, `html`],
15 exclude: [`node_modules`, `tests`, `**/*.test.{ts,tsx}`],
16 },
17 },
18})