More updates to program reuse with different option changes (#44276)

This commit is contained in:
Sheetal Nandi
2021-05-26 15:57:43 -07:00
committed by GitHub
parent 3442d311cf
commit 2ffd35de4d
6 changed files with 27 additions and 22 deletions
@@ -262,7 +262,7 @@ namespace ts {
it("fails if change affects type references", () => {
const program1 = newProgram(files, ["a.ts"], { types: ["a"] });
const program2 = updateProgram(program1, ["a.ts"], { types: ["b"] }, noop);
assert.equal(program2.structureIsReused, StructureIsReused.Not);
assert.equal(program2.structureIsReused, StructureIsReused.SafeModules);
});
it("succeeds if change doesn't affect type references", () => {