Tests when the .ts and .js files are mixed in compilation with tscconfig file doesnt specifying any names
This commit is contained in:
parent
dbb2772ed8
commit
14b608241d
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"scenario": "Verify when different named .ts and .js file exists in the folder and tsconfig.json doesnt specify anyt files",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "DifferentNamesNotSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"DifferentNamesNotSpecified/a.ts",
|
||||
"DifferentNamesNotSpecified/b.js"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"test.js",
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/test.d.ts
vendored
Normal file
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/test.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
declare var test: number;
|
||||
declare var test2: number;
|
|
@ -0,0 +1,2 @@
|
|||
var test = 10;
|
||||
var test2 = 10; // Should get compiled
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"scenario": "Verify when different named .ts and .js file exists in the folder and tsconfig.json doesnt specify anyt files",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "DifferentNamesNotSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"DifferentNamesNotSpecified/a.ts",
|
||||
"DifferentNamesNotSpecified/b.js"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"test.js",
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/test.d.ts
vendored
Normal file
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/test.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
declare var test: number;
|
||||
declare var test2: number;
|
|
@ -0,0 +1,2 @@
|
|||
var test = 10;
|
||||
var test2 = 10; // Should get compiled
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"scenario": "Verify when different named .ts and .js file exists in the folder and tsconfig.json doesnt specify anyt files",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "DifferentNamesNotSpecified"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1 @@
|
|||
var test2 = 10; // Should get compiled
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"compilerOptions": { "out": "test.js" }
|
||||
}
|
Loading…
Reference in a new issue