monkeytype/backend/vitest.config.js
Christian Fehmer c1a681c17f
test: split integration tests (@fehmer) (#6807)
- **trigger**
- **test: split integration tests (@fehmer)**
2025-07-30 13:22:40 +02:00

18 lines
540 B
JavaScript

import { defineConfig } from "vitest/config";
const isIntegrationTest = process.env["INTEGRATION_TESTS"] === "true";
export default defineConfig({
test: {
globals: true,
environment: "node",
globalSetup: "__tests__/global-setup.ts",
setupFiles: isIntegrationTest
? ["__tests__/__integration__/setup-integration-tests.ts"]
: ["__tests__/setup-tests.ts"],
pool: "forks", //this should be the default value, however the CI fails without this set.
coverage: {
include: ["**/*.ts"],
},
},
});