Tests when the .ts and .js files are mixed in compilation with tscconfig file doesnt specifying any names

This commit is contained in:
Sheetal Nandi 2015-09-16 12:52:33 -07:00
parent dbb2772ed8
commit 14b608241d
10 changed files with 52 additions and 0 deletions

View file

@ -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"
]
}

View file

@ -0,0 +1,2 @@
declare var test: number;
declare var test2: number;

View file

@ -0,0 +1,2 @@
var test = 10;
var test2 = 10; // Should get compiled

View file

@ -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"
]
}

View file

@ -0,0 +1,2 @@
declare var test: number;
declare var test2: number;

View file

@ -0,0 +1,2 @@
var test = 10;
var test2 = 10; // Should get compiled

View file

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

View file

@ -0,0 +1 @@
var test = 10;

View file

@ -0,0 +1 @@
var test2 = 10; // Should get compiled

View file

@ -0,0 +1,3 @@
{
"compilerOptions": { "out": "test.js" }
}