mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Tests when the .ts and .js files are mixed in compilation with tscconfig file specifying them
This commit is contained in:
parent
0f73c1618c
commit
dbb2772ed8
@ -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"
|
||||
]
|
||||
}
|
||||
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/test.d.ts
vendored
Normal file
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/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 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"
|
||||
]
|
||||
}
|
||||
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/test.d.ts
vendored
Normal file
2
tests/baselines/reference/project/jsFileCompilationDifferentNamesSpecified/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 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"
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
var test = 10;
|
||||
@ -0,0 +1 @@
|
||||
var test2 = 10; // Should get compiled
|
||||
@ -0,0 +1,4 @@
|
||||
{
|
||||
"compilerOptions": { "out": "test.js" },
|
||||
"files": [ "a.ts", "b.js" ]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user