mirror of
https://github.com/ershisan99/cards-front.git
synced 2025-12-16 12:32:57 +00:00
25 lines
493 B
TypeScript
25 lines
493 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
import react from "@vitejs/plugin-react"
|
|
import path from "path"
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
open: true,
|
|
},
|
|
resolve: {
|
|
alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
|
|
},
|
|
build: {
|
|
outDir: "build",
|
|
sourcemap: true,
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: "src/setupTests",
|
|
mockReset: true,
|
|
},
|
|
})
|