@stryker-mutator/core
Version:
The extendable JavaScript mutation testing framework
30 lines • 1.19 kB
TypeScript
export declare const fileUtils: {
/**
* Cleans the dir by creating it.
*/
cleanDir(dirName: string): Promise<string | undefined>;
exists(fileName: string): Promise<boolean>;
/**
* Wrapper around the 'import' expression (for testability)
*/
importModule(moduleName: string): Promise<unknown>;
/**
* Recursively walks the from directory and copy the content to the target directory synchronously
* @param from The source directory to move from
* @param to The target directory to move to
*/
moveDirectoryRecursiveSync(from: string, to: string): void;
/**
* Creates a symlink at `from` that points to `to`
* @param to The thing you want to point to
* @param from The thing you want to point from
*/
symlinkJunction(to: string, from: string): Promise<void>;
/**
* Looks for the node_modules folder from basePath up to root.
* returns the first occurrence of the node_modules, or null of none could be found.
* @param basePath starting point
*/
findNodeModulesList(basePath: string, tempDirName?: string): Promise<string[]>;
};
//# sourceMappingURL=file-utils.d.ts.map