mocha-chai-jest-snapshot
Version:
provides snapshot testing like jest
8 lines (7 loc) • 519 B
TypeScript
export declare const replaceRootDirInPath: (rootDir: string, filePath: string) => string;
type OrArray<T> = T | Array<T>;
type ReplaceRootDirConfigObj = Record<string, any>;
type ReplaceRootDirConfigValues = OrArray<ReplaceRootDirConfigObj> | OrArray<RegExp> | OrArray<string>;
export declare const replaceRootDirInObject: <T extends ReplaceRootDirConfigObj>(rootDir: string, config: T) => T;
export declare const _replaceRootDirTags: <T extends ReplaceRootDirConfigValues>(rootDir: string, config: T) => T;
export {};