From f31b9d3891e10fecc3c2526b1339d96aec8f0c61 Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Wed, 8 Aug 2018 16:38:42 +0200 Subject: [PATCH] fix test --- src/testRunner/unittests/moduleResolution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index 95093ae88ec..f0a1ad3face 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -326,7 +326,7 @@ namespace ts { const host = createModuleResolutionHost( /*hasDirectoryExists*/ true, { - name: "/a.ts", + name: "/modules/a.ts", symlinks: ["/sub/node_modules/a/index.ts"], }, { @@ -342,7 +342,7 @@ namespace ts { isExternalLibraryImport: true, originalPath: "/sub/node_modules/a/index.ts", packageId: undefined, - resolvedFileName: "/a.ts", + resolvedFileName: "/modules/a.ts", }); resolution = resolveModuleName("a", "/foo.ts", compilerOptions, host, cache); assert.isUndefined(resolution.resolvedModule, "lookup in parent directory doesn't hit the cache");