Files
msd-core/tests/helpers/fast-check-setup.cjs
Jakub Zych a9a7a328e6 refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
2026-10-06 01:47:40 +02:00

26 lines
662 B
JavaScript

'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=<n> 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;