Add tests when same named .ts and .js file exist with tsconfig file specifying .ts file
This commit is contained in:
Родитель
8da3bd2ffd
Коммит
8aeff929a1
|
@ -1,15 +1,5 @@
|
|||
node_modules/
|
||||
built/*
|
||||
tests/cases/*.js
|
||||
tests/cases/*/*.js
|
||||
tests/cases/*/*/*.js
|
||||
tests/cases/*/*/*/*.js
|
||||
tests/cases/*/*/*/*/*.js
|
||||
tests/cases/*.js.map
|
||||
tests/cases/*/*.js.map
|
||||
tests/cases/*/*/*.js.map
|
||||
tests/cases/*/*/*/*.js.map
|
||||
tests/cases/*/*/*/*/*.js.map
|
||||
tests/cases/rwc/*
|
||||
tests/cases/test262/*
|
||||
tests/cases/perf/*
|
||||
|
|
1
tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/SameNameTsSpecified/a.d.ts
поставляемый
Normal file
1
tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/SameNameTsSpecified/a.d.ts
поставляемый
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"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": "SameNameTsSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"SameNameTsSpecified/a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"SameNameTsSpecified/a.js",
|
||||
"SameNameTsSpecified/a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/SameNameTsSpecified/a.d.ts
поставляемый
Normal file
1
tests/baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/SameNameTsSpecified/a.d.ts
поставляемый
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"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": "SameNameTsSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"SameNameTsSpecified/a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"SameNameTsSpecified/a.js",
|
||||
"SameNameTsSpecified/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -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": "SameNameTsSpecified"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test1 = 10; // Shouldnt get compiled
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1 @@
|
|||
{ "files": [ "a.ts" ] }
|
Загрузка…
Ссылка в новой задаче