diff --git a/fixtures/imports-namespace/index.ts b/fixtures/imports-namespace/index.ts index 0a117eaac..bcb06f705 100644 --- a/fixtures/imports-namespace/index.ts +++ b/fixtures/imports-namespace/index.ts @@ -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; diff --git a/fixtures/imports-namespace/namespace2.ts b/fixtures/imports-namespace/namespace2.ts new file mode 100644 index 000000000..ee06b1ce7 --- /dev/null +++ b/fixtures/imports-namespace/namespace2.ts @@ -0,0 +1,3 @@ +export const identifier = 1; +export const identifier2 = 1; +export const identifier3 = () => 1; diff --git a/test/imports-namespace.test.ts b/test/imports-namespace.test.ts index d067a0a17..c310053e7 100644 --- a/test/imports-namespace.test.ts +++ b/test/imports-namespace.test.ts @@ -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, }); });