mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#52596)
This commit is contained in:
@@ -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
Reference in New Issue
Block a user