Add --noEmit to tests

This commit is contained in:
Mohamed Hegazy
2017-03-06 21:01:47 -08:00
parent 0b247b12a3
commit 1f9bb693ec
6 changed files with 3 additions and 12 deletions

View File

@@ -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";

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,6 @@
// @allowJs: true
// @checkJsFiles: true
// @noEmit: true
// @fileName: a.js
var x = "string";

View File

@@ -1,5 +1,6 @@
// @allowJs: true
// @checkJsFiles: false
// @noEmit: true
// @fileName: a.js
// @check

View File

@@ -1,4 +1,5 @@
// @allowJs: true
// @noEmit: true
// @fileName: a.js
// @check