23 lines
487 B
TypeScript
23 lines
487 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
include: ["tests/**/*.test.ts", "tests/**/*.test.tsx"],
|
|
watch: false,
|
|
allowOnly: !process.env.CI,
|
|
globals: false,
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
pool: "forks",
|
|
fileParallelism: false,
|
|
testTimeout: 120_000,
|
|
hookTimeout: 120_000,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": new URL("./src", import.meta.url).pathname,
|
|
},
|
|
},
|
|
})
|