20 lines
542 B
TypeScript
20 lines
542 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const globalSetup = fileURLToPath(
|
|
new URL("./tests/integration/global-setup.ts", import.meta.url)
|
|
);
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: false,
|
|
environment: "node",
|
|
pool: "forks",
|
|
globalSetup: [globalSetup],
|
|
include: ["tests/integration/**/*.integration.test.ts"],
|
|
exclude: ["dist/**", "node_modules/**", "src/**"],
|
|
testTimeout: 90000,
|
|
hookTimeout: 180000,
|
|
},
|
|
});
|