Files
SkyMoney/api/vitest.config.ts
Ricearoni1245 1645896e54
Some checks failed
Deploy / deploy (push) Has been cancelled
chore: ran security check for OWASP top 10
2026-03-01 20:44:55 -06:00

20 lines
511 B
TypeScript

import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["tests/**/*.test.ts"],
exclude: ["tests/security-misconfiguration.test.ts"],
// run single-threaded to keep DB tests deterministic
pool: "threads",
poolOptions: { threads: { singleThread: true } },
testTimeout: 30_000,
env: {
NODE_ENV: "test",
AUTH_DISABLED: "1",
SEED_DEFAULT_BUDGET: "1"
},
setupFiles: ['tests/setup.ts'],
},
});