(packageName: string, cwd: string)
| 85 | }; |
| 86 | |
| 87 | export 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 | |
| 96 | export const makeTemplate = |
| 97 | (str: string): ((values?: Array<string>) => string) => |
no test coverage detected