You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
-1
Original file line number
Diff line number
Diff line change
@@ -509,7 +509,6 @@ namespace ts {
509
509
Option_noEmit_cannot_be_specified_with_option_out_or_outDir: {code: 5040,category: DiagnosticCategory.Error,key: "Option 'noEmit' cannot be specified with option 'out' or 'outDir'."},
510
510
Option_noEmit_cannot_be_specified_with_option_declaration: {code: 5041,category: DiagnosticCategory.Error,key: "Option 'noEmit' cannot be specified with option 'declaration'."},
511
511
Option_project_cannot_be_mixed_with_source_files_on_a_command_line: {code: 5042,category: DiagnosticCategory.Error,key: "Option 'project' cannot be mixed with source files on a command line."},
512
-
Option_sourceMap_cannot_be_specified_with_option_isolatedModules: {code: 5043,category: DiagnosticCategory.Error,key: "Option 'sourceMap' cannot be specified with option 'isolatedModules'."},
513
512
Option_declaration_cannot_be_specified_with_option_isolatedModules: {code: 5044,category: DiagnosticCategory.Error,key: "Option 'declaration' cannot be specified with option 'isolatedModules'."},
514
513
Option_noEmitOnError_cannot_be_specified_with_option_isolatedModules: {code: 5045,category: DiagnosticCategory.Error,key: "Option 'noEmitOnError' cannot be specified with option 'isolatedModules'."},
515
514
Option_out_cannot_be_specified_with_option_isolatedModules: {code: 5046,category: DiagnosticCategory.Error,key: "Option 'out' cannot be specified with option 'isolatedModules'."},
// Expecting 5047: "Option 'isolatedModules' can only be used when either option'--module' is provided or option 'target' is 'ES6' or higher."
22
-
runTest(`var x = 0;`,{},/*fileName*/undefined,/*moduleName*/undefined,/*expectedOutput*/undefined,/*expectedDiagnosticCodes*/[5047]);
76
+
test(`var x = 0;`,{expectedDiagnosticCodes:[5047]});
23
77
});
24
78
25
79
it("Generates no diagnostics with valid inputs",()=>{
26
80
// No errors
27
-
runTest(`var x = 0;`,{module: ModuleKind.CommonJS},/*fileName*/undefined,/*moduleName*/undefined,/*expectedOutput*/undefined,/*expectedDiagnosticCodes*/[]);
81
+
test(`var x = 0;`,{options: {compilerOptions: {module: ModuleKind.CommonJS}}});
28
82
});
29
83
30
84
it("Generates no diagnostics for missing file references",()=>{
runTest(`var x = 0;`,{module: ModuleKind.AMD},/*fileName*/undefined,/*moduleName*/undefined,`define(["require", "exports"], function (require, exports) {\r\n var x = 0;\r\n});\r\n`);
expectedOutput: `define(["require", "exports"], function (require, exports) {\r\n var x = 0;\r\n});\r\n`
110
+
});
53
111
});
54
112
55
113
it("Uses correct newLine character",()=>{
56
-
runTest(`var x = 0;`,{module: ModuleKind.CommonJS,newLine: NewLineKind.LineFeed},/*fileName*/undefined,/*moduleName*/undefined,`var x = 0;\n`,/*expectedDiagnosticCodes*/[]);
0 commit comments