test: remove symlink workaround (#29426)

This is no longer required. And is causing some errors to some of our engineers

PR Close #29426
This commit is contained in:
Alan Agius 2019-03-20 18:33:24 +01:00 committed by Matias Niemelä
parent 64e5628897
commit 68a9fe817c
1 changed files with 2 additions and 9 deletions

View File

@ -122,15 +122,8 @@ export function setupBazelTo(tmpDirPath: string) {
fs.mkdirSync(nodeModulesPath);
fs.mkdirSync(angularDirectory);
getAngularPackagesFromRunfiles().forEach(({pkgPath, name}) => {
fs.symlinkSync(pkgPath, path.join(angularDirectory, name), 'dir');
// todo: check why we always need an index.d.ts
if (!fs.existsSync(path.join(angularDirectory, name, 'index.d.ts'))) {
fs.symlinkSync(
path.join(pkgPath, `${name}.d.ts`), path.join(angularDirectory, name, 'index.d.ts'));
}
});
getAngularPackagesFromRunfiles().forEach(
({pkgPath, name}) => { fs.symlinkSync(pkgPath, path.join(angularDirectory, name), 'dir'); });
// Link typescript
const typeScriptSource = resolveNpmTreeArtifact('npm/node_modules/typescript');