MCPcopy
hub / github.com/jestjs/jest / linkJestPackage

Function linkJestPackage

e2e/Utils.ts:87–94  ·  view source on GitHub ↗
(packageName: string, cwd: string)

Source from the content-addressed store, hash-verified

85};
86
87export const linkJestPackage = (packageName: string, cwd: string) => {
88 const packagesDir = path.resolve(__dirname, '../packages');
89 const packagePath = path.resolve(packagesDir, packageName);
90 const destination = path.resolve(cwd, 'node_modules/', packageName);
91 fs.mkdirSync(destination, {recursive: true});
92 fs.rmSync(destination, {force: true, recursive: true});
93 fs.symlinkSync(packagePath, destination, 'junction');
94};
95
96export const makeTemplate =
97 (str: string): ((values?: Array<string>) => string) =>

Callers 1

transform.test.tsFile · 0.90

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected