mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Add --noEmit to tests
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
|
||||
|
||||
|
||||
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
==== tests/cases/compiler/a.js (1 errors) ====
|
||||
|
||||
var x = "string";
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
|
||||
|
||||
|
||||
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
==== tests/cases/compiler/a.js (1 errors) ====
|
||||
|
||||
// @check
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
|
||||
|
||||
|
||||
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
|
||||
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
|
||||
==== tests/cases/compiler/a.js (1 errors) ====
|
||||
|
||||
// @check
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: true
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
var x = "string";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: false
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
// @check
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// @allowJs: true
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
// @check
|
||||
|
||||
Reference in New Issue
Block a user