Fix the sample test which lead to discripancy with incremntal build because of error (#54311)

This commit is contained in:
Sheetal Nandi
2023-05-18 12:02:42 -07:00
committed by GitHub
parent ce1c97f4f0
commit d01a1c3081
3 changed files with 36 additions and 367 deletions

View File

@@ -161,7 +161,10 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => {
},
{
caption: "rebuilds when tsconfig changes",
edit: fs => replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es3"`),
edit: fs => {
replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`);
fs.writeFileSync("/lib/lib.es2020.full.d.ts", libContent);
},
},
]
});