mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Add testcases
This commit is contained in:
12
tests/cases/project/declarationDir.json
Normal file
12
tests/cases/project/declarationDir.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"scenario": "declarationDir: specify declarationDir only",
|
||||
"projectRoot": "tests/cases/projects/declarationDir",
|
||||
"inputFiles": [
|
||||
"a.ts",
|
||||
"subfolder/b.ts",
|
||||
"subfolder/c.ts"
|
||||
],
|
||||
"declaration": true,
|
||||
"declarationDir": "declarations",
|
||||
"baselineCheck": true
|
||||
}
|
||||
13
tests/cases/project/declarationDir2.json
Normal file
13
tests/cases/project/declarationDir2.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scenario": "declarationDir: specify declarationDir with outDir",
|
||||
"projectRoot": "tests/cases/projects/declarationDir",
|
||||
"inputFiles": [
|
||||
"a.ts",
|
||||
"subfolder/b.ts",
|
||||
"subfolder/c.ts"
|
||||
],
|
||||
"outDir": "out",
|
||||
"declaration": true,
|
||||
"declarationDir": "declarations",
|
||||
"baselineCheck": true
|
||||
}
|
||||
13
tests/cases/project/declarationDir3.json
Normal file
13
tests/cases/project/declarationDir3.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"scenario": "declarationDir: specify declarationDir with bundled output file",
|
||||
"projectRoot": "tests/cases/projects/declarationDir",
|
||||
"inputFiles": [
|
||||
"a.ts",
|
||||
"subfolder/b.ts",
|
||||
"subfolder/c.ts"
|
||||
],
|
||||
"out": "out.js",
|
||||
"declaration": true,
|
||||
"declarationDir": "declarations",
|
||||
"baselineCheck": true
|
||||
}
|
||||
Reference in New Issue
Block a user