19 lines
387 B
TypeScript
19 lines
387 B
TypeScript
import path from "path"
|
|
import { fileURLToPath } from "url"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
const __dirname = fileURLToPath(new URL(".", import.meta.url))
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
})
|