19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
include: ["tests/unit/**/*.test.ts", "tests/integration/**/*.test.ts"],
|
|
globalSetup: ["./tests/global-setup.ts"],
|
|
setupFiles: ["./tests/setup-env.ts"],
|
|
// Integration tests share one Postgres database; run files serially.
|
|
fileParallelism: false,
|
|
testTimeout: 20_000,
|
|
hookTimeout: 30_000,
|
|
},
|
|
});
|