Skip to content

Commit ddadea1

Browse files
authored
Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#52596)
1 parent ea47fb1 commit ddadea1

File tree

2 files changed

+47
-2478
lines changed

2 files changed

+47
-2478
lines changed

src/testRunner/unittests/tsserver/plugins.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ describe("unittests:: tsserver:: plugins overriding getSupportedCodeFixes", () =
194194
case "/b.ts":
195195
return ["b"];
196196
default:
197-
return info.languageService.getSupportedCodeFixes(fileName);
197+
// Make this stable list of single item so we dont have to update the baseline for every additional error
198+
return [info.languageService.getSupportedCodeFixes(fileName)[0]];
198199
}
199200
};
200201
return proxy;

0 commit comments

Comments
 (0)