Skip to content

Commit 150ef27

Browse files
committedOct 29, 2023
Extend imports-namespace fixture (#317)
1 parent 8d9ee61 commit 150ef27

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
 

‎fixtures/imports-namespace/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
export * as ReExported from './re-exported-module';
22
import * as NS from './namespace';
3+
import * as NS2 from './namespace2';
34

45
NS.identifier;
56
NS['identifier2'];
67
NS.identifier3();
8+
9+
const { identifier, identifier2, identifier3 } = NS2;
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const identifier = 1;
2+
export const identifier2 = 1;
3+
export const identifier3 = () => 1;

‎test/imports-namespace.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('Ignore namespace re-export by entry file', async () => {
1515

1616
assert.deepEqual(counters, {
1717
...baseCounters,
18-
processed: 3,
19-
total: 3,
18+
processed: 4,
19+
total: 4,
2020
});
2121
});

0 commit comments

Comments
 (0)
Please sign in to comment.