mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 02:15:10 -05:00
perf: ensure compiler options affecting semantic diagnostics get included in build info (#53423)
This commit is contained in:
@@ -245,3 +245,14 @@ describe("unittests:: config:: commandLineParsing:: parseBuildOptions", () => {
|
||||
assertParseResult("errors on invalid excludeFiles", ["--excludeFiles", "**/../*"]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("unittests:: config:: commandLineParsing:: optionDeclarations", () => {
|
||||
it("should have affectsBuildInfo true for every option with affectsSemanticDiagnostics", () => {
|
||||
for (const option of ts.optionDeclarations) {
|
||||
if (option.affectsSemanticDiagnostics) {
|
||||
// semantic diagnostics affect the build info, so ensure they're included
|
||||
assert(option.affectsBuildInfo ?? false, option.name);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user