Skip to content

Commit 0f73c16

Browse files
committed
When folder contains .d.ts as well as .js of same name and tsconfig doesnt contain any name
1 parent 70d3de4 commit 0f73c16

6 files changed

Lines changed: 33 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"scenario": "Verify when same named .ts and .js file exists in the folder but no file is specified in tsconfig.json",
3+
"projectRoot": "tests/cases/projects/jsFileCompilation",
4+
"baselineCheck": true,
5+
"declaration": true,
6+
"project": "SameNameDTsNotSpecified",
7+
"resolvedInputFiles": [
8+
"lib.d.ts",
9+
"SameNameDTsNotSpecified/a.d.ts"
10+
],
11+
"emittedFiles": []
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"scenario": "Verify when same named .ts and .js file exists in the folder but no file is specified in tsconfig.json",
3+
"projectRoot": "tests/cases/projects/jsFileCompilation",
4+
"baselineCheck": true,
5+
"declaration": true,
6+
"project": "SameNameDTsNotSpecified",
7+
"resolvedInputFiles": [
8+
"lib.d.ts",
9+
"SameNameDTsNotSpecified/a.d.ts"
10+
],
11+
"emittedFiles": []
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"scenario": "Verify when same named .ts and .js file exists in the folder but no file is specified in tsconfig.json",
3+
"projectRoot": "tests/cases/projects/jsFileCompilation",
4+
"baselineCheck": true,
5+
"declaration": true,
6+
"project": "SameNameDTsNotSpecified"
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare var a: number;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var test1 = 10; // Shouldnt get compiled

tests/cases/projects/jsFileCompilation/SameNameDtsNotSpecified/tsconfig.json

Whitespace-only changes.

0 commit comments

Comments
 (0)