From 68a9fe817c9a3505ba514031fab983f6fd89ed1c Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 20 Mar 2019 18:33:24 +0100 Subject: [PATCH] test: remove symlink workaround (#29426) This is no longer required. And is causing some errors to some of our engineers PR Close #29426 --- packages/compiler-cli/test/test_support.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/compiler-cli/test/test_support.ts b/packages/compiler-cli/test/test_support.ts index 34ac6e6a92..b033097299 100644 --- a/packages/compiler-cli/test/test_support.ts +++ b/packages/compiler-cli/test/test_support.ts @@ -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');