Skip to content

Commit e1fa70b

Browse files
Add failing test for request for ... is not yet fulfilled
1 parent 2226742 commit e1fa70b

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

e2e/native-esm/__tests__/native-esm.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ test('handle dynamic imports of the same module in parallel', async () => {
125125
expect(first(2)).toBe(4);
126126
});
127127

128+
test('import same file with child imports in parallel indirectly', async () => {
129+
await Promise.all([import('../file1.js'), import('../file2.js')]);
130+
});
131+
128132
test('varies module cache by query', () => {
129133
expect(staticImportedStatefulWithQuery).not.toBe(
130134
staticImportedStatefulWithAnotherQuery,

e2e/native-esm/file1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './sharedImport.js';

e2e/native-esm/file2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './sharedImport.js';

e2e/native-esm/sharedImport.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './sharedImportDep.js';

e2e/native-esm/sharedImportDep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './index.js';

0 commit comments

Comments
 (0)