mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
More updates to program reuse with different option changes (#44276)
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user