Skip to content

Commit

Permalink
Add test for comments around defer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 19, 2024
1 parent 9e43939 commit b1f506b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/baselines/reference/importDeferComments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//// [tests/cases/conformance/importDefer/importDeferComments.ts] ////

//// [a.ts]
export {};

//// [b.ts]
/*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/;


//// [a.js]
export {};
//// [b.js]
export {};
10 changes: 10 additions & 0 deletions tests/baselines/reference/importDeferComments.symbols
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//// [tests/cases/conformance/importDefer/importDeferComments.ts] ////

=== a.ts ===

export {};

=== b.ts ===
/*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/;
>aNs : Symbol(aNs, Decl(b.ts, 0, 24))

11 changes: 11 additions & 0 deletions tests/baselines/reference/importDeferComments.types
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//// [tests/cases/conformance/importDefer/importDeferComments.ts] ////

=== a.ts ===

export {};

=== b.ts ===
/*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/;
>aNs : typeof aNs
> : ^^^^^^^^^^

6 changes: 6 additions & 0 deletions tests/cases/conformance/importDefer/importDeferComments.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @module: esnext
// @filename: a.ts
export {};

// @filename: b.ts
/*1*/ import /*2*/ defer /*3*/ * /*4*/ as /*5*/ aNs /*6*/ from /*7*/ "a" /*8*/;

0 comments on commit b1f506b

Please sign in to comment.