Skip to content

Commit

Permalink
Extend imports-namespace fixture (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 29, 2023
1 parent 8d9ee61 commit 150ef27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fixtures/imports-namespace/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export * as ReExported from './re-exported-module';
import * as NS from './namespace';
import * as NS2 from './namespace2';

NS.identifier;
NS['identifier2'];
NS.identifier3();

const { identifier, identifier2, identifier3 } = NS2;
3 changes: 3 additions & 0 deletions fixtures/imports-namespace/namespace2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const identifier = 1;
export const identifier2 = 1;
export const identifier3 = () => 1;
4 changes: 2 additions & 2 deletions test/imports-namespace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('Ignore namespace re-export by entry file', async () => {

assert.deepEqual(counters, {
...baseCounters,
processed: 3,
total: 3,
processed: 4,
total: 4,
});
});

0 comments on commit 150ef27

Please sign in to comment.