Fix node16 tests (#48974)

This commit is contained in:
Sheetal Nandi
2022-05-05 11:45:05 -07:00
committed by GitHub
parent eb1a8b14cc
commit 1e157ef1b2
4 changed files with 766 additions and 81 deletions

View File

@@ -126,7 +126,7 @@ namespace ts.tscWatch {
path: `${projectRoot}/node_modules/pkg2`,
symLink: `${projectRoot}/packages/pkg2`,
},
{ ...libFile, path: `/a/lib/lib.es2020.full.d.ts` }
{ ...libFile, path: `/a/lib/lib.es2022.full.d.ts` }
], { currentDirectory: projectRoot }),
commandLineArgs: ["-b", "packages/pkg1", "-w", "--verbose", "--traceResolution"],
changes: [

View File

@@ -178,7 +178,7 @@ namespace ts {
}`,
}, ""),
modifyFs: fs => {
fs.writeFileSync("/lib/lib.es2020.full.d.ts", tscWatch.libFile.content);
fs.writeFileSync("/lib/lib.es2022.full.d.ts", tscWatch.libFile.content);
fs.symlinkSync("/src", "/src/src-types/node_modules");
fs.symlinkSync("/src", "/src/src-dogs/node_modules");
},