Skip to content

Commit 1f9bb69

Browse files
committed
Add --noEmit to tests
1 parent 0b247b1 commit 1f9bb69

File tree

6 files changed

+3
-12
lines changed

6 files changed

+3
-12
lines changed

tests/baselines/reference/checkJsFiles.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
2-
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
31
tests/cases/compiler/a.js(3,1): error TS2322: Type '0' is not assignable to type 'string'.
42

53

6-
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
7-
!!! 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.
84
==== tests/cases/compiler/a.js (1 errors) ====
95

106
var x = "string";

tests/baselines/reference/checkJsFiles2.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
2-
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
31
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
42

53

6-
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
7-
!!! 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.
84
==== tests/cases/compiler/a.js (1 errors) ====
95

106
// @check

tests/baselines/reference/checkJsFiles3.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
2-
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
31
tests/cases/compiler/a.js(4,1): error TS2322: Type '0' is not assignable to type 'string'.
42

53

6-
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
7-
!!! 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.
84
==== tests/cases/compiler/a.js (1 errors) ====
95

106
// @check

tests/cases/compiler/checkJsFiles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @allowJs: true
22
// @checkJsFiles: true
3+
// @noEmit: true
34

45
// @fileName: a.js
56
var x = "string";

tests/cases/compiler/checkJsFiles2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @allowJs: true
22
// @checkJsFiles: false
3+
// @noEmit: true
34

45
// @fileName: a.js
56
// @check

tests/cases/compiler/checkJsFiles3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @allowJs: true
2+
// @noEmit: true
23

34
// @fileName: a.js
45
// @check

0 commit comments

Comments
 (0)