23 lines
487 B
TypeScript
23 lines
487 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
import react from "@vitejs/plugin-react"
|
|
import svgr from "vite-plugin-svgr"
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), svgr(), tsconfigPaths()],
|
|
server: {
|
|
open: true,
|
|
},
|
|
build: {
|
|
outDir: "build",
|
|
sourcemap: true,
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: "src/setupTests",
|
|
mockReset: true,
|
|
},
|
|
})
|