31 lines
No EOL
781 B
TypeScript
31 lines
No EOL
781 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
|
},
|
|
test: {
|
|
projects: [
|
|
{
|
|
resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
|
|
test: {
|
|
name: "unit",
|
|
environment: "node",
|
|
include: ["src/**/*.test.ts"],
|
|
},
|
|
},
|
|
{
|
|
resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
|
|
test: {
|
|
name: "integration",
|
|
environment: "node",
|
|
include: ["tests/integration/**/*.test.ts"],
|
|
hookTimeout: 30_000,
|
|
testTimeout: 30_000,
|
|
poolOptions: { forks: { singleFork: true } },
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}); |