Files
notifkit/vitest.config.ts

32 lines
911 B
TypeScript

import { defineConfig } from "vitest/config";
import path from "node:path";
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
environment: "node",
include: ["tests/**/*.test.ts", "packages/**/*.test.ts"],
exclude: ["**/node_modules/**", "**/dist/**", "profiling/**", ".agents/**"],
// Starts the Postgres and Redis every file under tests/integration shares.
globalSetup: ["tests/integration/support/global-setup.ts"],
testTimeout: 1200_000,
hookTimeout: 1200_000,
coverage: {
provider: "v8",
reporter: ["text", "json", "json-summary", "html"],
include: ["src/**", "packages/*/src/**"],
exclude: ["test-project/**", "tests/**", "vitest.config.ts"],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
},
});