forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test "chaining" of X-TypeScript-Types headers.
Refs denoland#4184 Refs denoland#4040 In denoland#4040 we changed the way JavaScript dependencies are analysed in the TypeScript compiler. When we encounter a JavaScript file that doesn't have any types, and `checkJs` is disabled, we stop the analysis. This caused situations where when there was a typed file, loading an untyped file, loading a typed file, we stop the analysis. We didn't specifically check this "chaining" behaviour in our tests, and there were situations in the while where this behaviour was a regression, so this introduces test to ensure the behaviour as designed is preserved.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as foo from "http://127.0.0.1:4545/xt001.js"; | ||
|
||
console.log(foo.foo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[WILDCARD] | ||
DEBUG TS - compiler::host.getSourceFile http://127.0.0.1:4545/xt001.d.ts | ||
[WILDCARD] | ||
DEBUG TS - compiler::host.getSourceFile http://127.0.0.1:4545/xt002.d.ts | ||
[WILDCARD] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters