Skip to content

Commit d01a1c3

Browse files
authored
Fix the sample test which lead to discripancy with incremntal build because of error (microsoft#54311)
1 parent ce1c97f commit d01a1c3

File tree

3 files changed

+36
-367
lines changed

3 files changed

+36
-367
lines changed

src/testRunner/unittests/tsbuild/sample.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ describe("unittests:: tsbuild:: on 'sample1' project", () => {
161161
},
162162
{
163163
caption: "rebuilds when tsconfig changes",
164-
edit: fs => replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es3"`),
164+
edit: fs => {
165+
replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es2020"`);
166+
fs.writeFileSync("/lib/lib.es2020.full.d.ts", libContent);
167+
},
165168
},
166169
]
167170
});

tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild-discrepancies.js

Lines changed: 0 additions & 339 deletions
This file was deleted.

0 commit comments

Comments
 (0)