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
2023-02-03 13:17:33 -08:00
committed by GitHub
parent ea47fb1405
commit ddadea1732
2 changed files with 4 additions and 2435 deletions

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;