This commit is contained in:
Ryan Cavanaugh 2017-12-12 17:22:41 -08:00
parent bd3a27ed52
commit 9e122d0305

View File

@ -1009,7 +1009,7 @@ namespace ts.projectSystem {
installer.installAll(/*expectedCount*/ 1);
});
it("cached unresolved typings are not recomputed if program structure did not change", () => {
it("should recompute resolutions after typings are installed", () => {
const host = createServerHost([]);
const session = createSession(host);
const f = {
@ -1051,7 +1051,7 @@ namespace ts.projectSystem {
session.executeCommand(changeRequest);
host.checkTimeoutQueueLengthAndRun(2); // This enqueues the updategraph and refresh inferred projects
const version2 = proj.getCachedUnresolvedImportsPerFile_TestOnly().getVersion();
assert.equal(version1, version2, "set of unresolved imports should not change");
assert.notEqual(version1, version2, "set of unresolved imports should change");
});
});