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

This commit is contained in:
Sheetal Nandi 2015-09-16 12:47:45 -07:00
parent 0f73c1618c
commit dbb2772ed8
10 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"scenario": "Verify when same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
"projectRoot": "tests/cases/projects/jsFileCompilation",
"baselineCheck": true,
"declaration": true,
"project": "DifferentNamesSpecified",
"resolvedInputFiles": [
"lib.d.ts",
"DifferentNamesSpecified/a.ts",
"DifferentNamesSpecified/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 same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
"projectRoot": "tests/cases/projects/jsFileCompilation",
"baselineCheck": true,
"declaration": true,
"project": "DifferentNamesSpecified",
"resolvedInputFiles": [
"lib.d.ts",
"DifferentNamesSpecified/a.ts",
"DifferentNamesSpecified/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 same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
"projectRoot": "tests/cases/projects/jsFileCompilation",
"baselineCheck": true,
"declaration": true,
"project": "DifferentNamesSpecified"
}

View File

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

View File

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

View File

@ -0,0 +1,4 @@
{
"compilerOptions": { "out": "test.js" },
"files": [ "a.ts", "b.js" ]
}