trading-app/vitest.config.mts
David 27a358038a
Some checks failed
Tick / tick (push) Failing after 1s
Cagnotte V1: IA news-driven trading sim, sandbox, PEA tracking, PWA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 19:06:17 +01:00

19 lines
618 B
TypeScript

import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(import.meta.dirname, "src"),
// « server-only » n'a de sens que dans Next.js ; en test on le neutralise.
"server-only": path.resolve(import.meta.dirname, "src/test/empty.ts"),
},
},
test: {
include: ["src/**/*.test.ts"],
// Les tests d'intégration (réseau + base) ne tournent que sur demande : pnpm test:integration
exclude: process.env.INTEGRATION ? [] : ["src/**/*.integration.test.ts"],
testTimeout: 120_000,
},
});