UNPKG

@fast-check/poisoning

Version:

Set of utilities to ease detection and revert of poisoning

6 lines (5 loc) 545 B
import type { GlobalDetails } from './types/AllGlobals'; /** Check whether or not a global has to be ignored for diff tracking */ export declare function shouldIgnoreGlobal(globalDetails: Pick<GlobalDetails, 'depth' | 'name' | 'rootAncestors'>, ignoredRootRegex: RegExp): boolean; /** Check whether or not a property from a global has to be ignored for diff tracking */ export declare function shouldIgnoreProperty(globalDetails: Pick<GlobalDetails, 'depth' | 'name' | 'rootAncestors'>, propertyName: string, ignoredRootRegex: RegExp): boolean;