mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Add tests when same named .ts and .js file exist with tsconfig file specifying .ts file
This commit is contained in:
parent
8da3bd2ffd
commit
8aeff929a1
10
.gitignore
vendored
10
.gitignore
vendored
@ -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/*
|
||||
|
||||
@ -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 @@
|
||||
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" ] }
|
||||
Loading…
x
Reference in New Issue
Block a user