Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#52596)

This commit is contained in:
Sheetal Nandi authored and GitHub committed 2023-02-03 13:17:33 -08:00
1 parent ea47fb1405
commit ddadea1732
2 files changed
+4 -2435

No files matched your search

+2 -1
View File
@@ -194,7 +194,8 @@ describe("unittests:: tsserver:: plugins overriding getSupportedCodeFixes", () =
case "/b.ts":
return ["b"];
default:
return info.languageService.getSupportedCodeFixes(fileName);
// Make this stable list of single item so we dont have to update the baseline for every additional error
return [info.languageService.getSupportedCodeFixes(fileName)[0]];
}
};
return proxy;
File diff suppressed because it is too large. Load diff