mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
Report error if commanline only option is specified in tsconfig (#53397)
This commit is contained in:
@@ -342,6 +342,17 @@ describe("unittests:: config:: tsconfigParsing:: parseConfigFileTextToJson", ()
|
||||
allFileList: ["/apath/a.ts"],
|
||||
}]);
|
||||
|
||||
baselinedParsed("generates errors when commandline option is in tsconfig", () => [{
|
||||
jsonText: JSON.stringify({
|
||||
compilerOptions: {
|
||||
help: true,
|
||||
}
|
||||
}),
|
||||
configFileName: "/apath/tsconfig.json",
|
||||
basePath: "tests/cases/unittests",
|
||||
allFileList: ["/apath/a.ts"],
|
||||
}]);
|
||||
|
||||
function baselineWildcards(subScenario: string, scenario: () => { configFileName: string, jsonText: string, basePath: string }[]) {
|
||||
baselineParseConfig({
|
||||
scenario: "tsconfigParsing",
|
||||
|
||||
Reference in New Issue
Block a user