@@ -61,6 +61,8 @@ test('parseImports records TSImportType edges separately from dynamic imports',
6161 "type Imported = import('./type-only.ts').Imported;" ,
6262 "type Queried = typeof import('./type-query.ts').value;" ,
6363 "type SameTarget = import('./same-target.ts').Target; void import('./same-target.ts');" ,
64+ "type Nested = import('./nested.ts').namespace.SessionState;" ,
65+ "type WholeModule = import('./whole-module.ts');" ,
6466 ] . join ( '\n' ) ,
6567 ) ;
6668
@@ -78,14 +80,14 @@ test('parseImports records TSImportType edges separately from dynamic imports',
7880 dynamic : false ,
7981 typeOnly : true ,
8082 line : 1 ,
81- symbols : [ ] ,
83+ symbols : [ 'Imported' ] ,
8284 } ,
8385 {
8486 spec : './type-query.ts' ,
8587 dynamic : false ,
8688 typeOnly : true ,
8789 line : 2 ,
88- symbols : [ ] ,
90+ symbols : [ 'value' ] ,
8991 } ,
9092 {
9193 spec : './same-target.ts' ,
@@ -99,6 +101,20 @@ test('parseImports records TSImportType edges separately from dynamic imports',
99101 dynamic : false ,
100102 typeOnly : true ,
101103 line : 3 ,
104+ symbols : [ 'Target' ] ,
105+ } ,
106+ {
107+ spec : './nested.ts' ,
108+ dynamic : false ,
109+ typeOnly : true ,
110+ line : 4 ,
111+ symbols : [ 'namespace' ] ,
112+ } ,
113+ {
114+ spec : './whole-module.ts' ,
115+ dynamic : false ,
116+ typeOnly : true ,
117+ line : 5 ,
102118 symbols : [ ] ,
103119 } ,
104120 ] ,
@@ -220,6 +236,7 @@ test('parseImports retains named source symbols without changing edge-kind detec
220236 "import type { TypeB as RenamedType } from './types.ts';" ,
221237 "export { reExport as publicName } from './re-export.ts';" ,
222238 "export type { ExportedType } from './exported-types.ts';" ,
239+ "export * from './re-export-all.ts';" ,
223240 "import * as namespace from './namespace.ts';" ,
224241 "void import('./dynamic.ts');" ,
225242 ] . join ( '\n' ) ,
@@ -237,6 +254,7 @@ test('parseImports retains named source symbols without changing edge-kind detec
237254 { spec : './types.ts' , dynamic : false , typeOnly : true , symbols : [ 'TypeB' ] } ,
238255 { spec : './re-export.ts' , dynamic : false , typeOnly : false , symbols : [ 'reExport' ] } ,
239256 { spec : './exported-types.ts' , dynamic : false , typeOnly : true , symbols : [ 'ExportedType' ] } ,
257+ { spec : './re-export-all.ts' , dynamic : false , typeOnly : false , symbols : [ ] } ,
240258 { spec : './namespace.ts' , dynamic : false , typeOnly : false , symbols : [ ] } ,
241259 { spec : './dynamic.ts' , dynamic : true , typeOnly : false , symbols : [ ] } ,
242260 ] ,
0 commit comments