'use strict'; /** * fast-check-setup.cjs * * Shared configuration for all property-based tests. Require this at the * top of every test file that calls fc.assert() — property-dedicated * (*.property.test.cjs) or not — before the first fc.assert(). * * Settings: * numRuns: 200 — enough to catch boundary bugs without slow CI * seed: 42 — deterministic across CI runs; set MSD_FC_SEED= to * override locally for exploration */ const fc = require('fast-check'); const seed = process.env.MSD_FC_SEED ? Number(process.env.MSD_FC_SEED) : 42; fc.configureGlobal({ numRuns: 200, seed, }); module.exports = fc;