fast-check
Version:
Property based testing framework for JavaScript (like QuickCheck)
12 lines (11 loc) • 427 B
JavaScript
import { getGlobal } from '../../../utils/globalThis.js';
const globalParametersSymbol = Symbol.for('fast-check/GlobalParameters');
export const configureGlobal = (parameters) => {
getGlobal()[globalParametersSymbol] = parameters;
};
export const readConfigureGlobal = () => {
return getGlobal()[globalParametersSymbol];
};
export const resetConfigureGlobal = () => {
delete getGlobal()[globalParametersSymbol];
};