Files
OmniRoute/tests/helpers/propertyConfig.ts
Diego Rodrigues de Sa e Souza 931afe3482 Fase 8 · Bloco B — suíte de correção (property + golden + SSE-correctness) (#3808)
Integrated into release/v3.8.25 — Fase 8 Bloco B (property + golden + SSE-correctness).
2026-06-14 18:02:51 -03:00

14 lines
544 B
TypeScript

import fc from "fast-check";
import { PROPERTY_SEED, PROPERTY_NUM_RUNS } from "../../scripts/quality/property-seed.mjs";
const envSeed = process.env.FC_SEED;
export const seed = envSeed === "random" ? undefined : envSeed ? Number(envSeed) : PROPERTY_SEED;
export const numRuns = process.env.FC_NUM_RUNS
? Number(process.env.FC_NUM_RUNS)
: PROPERTY_NUM_RUNS;
/** Apply the shared deterministic config; call once at top of each property test file. */
export function configureProperties(): void {
fc.configureGlobal({ seed, numRuns });
}