mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 07:55:10 -05:00
Add test for incremental with --tsbuildinfo file without specifying --out or config
This commit is contained in:
8
tests/baselines/reference/incrementalTsBuildInfoFile.js
Normal file
8
tests/baselines/reference/incrementalTsBuildInfoFile.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//// [a.ts]
|
||||
const x = 10;
|
||||
|
||||
|
||||
|
||||
|
||||
//// [a.js]
|
||||
var x = 10;
|
||||
@@ -0,0 +1,6 @@
|
||||
=== /a.ts ===
|
||||
const x = 10;
|
||||
>x : Symbol(x, Decl(a.ts, 0, 5))
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
=== /a.ts ===
|
||||
const x = 10;
|
||||
>x : 10
|
||||
>10 : 10
|
||||
|
||||
|
||||
|
||||
8
tests/cases/compiler/incrementalTsBuildInfoFile.ts
Normal file
8
tests/cases/compiler/incrementalTsBuildInfoFile.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @incremental: true
|
||||
// @tsBuildInfoFile: /a.tsbuildinfo
|
||||
|
||||
|
||||
// @Filename: /a.ts
|
||||
const x = 10;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user