Skip to content

Commit 7a52abd

Browse files
Add failing test for request for ... is not yet fulfilled
1 parent d0675cc commit 7a52abd

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
@@ -171,6 +171,10 @@ test('handle dynamic imports of the same module in parallel', async () => {
171171
expect(first(2)).toBe(4);
172172
});
173173

174+
test('import same file with child imports in parallel indirectly', async () => {
175+
await Promise.all([import('../file1.js'), import('../file2.js')]);
176+
});
177+
174178
test('varies module cache by query', () => {
175179
expect(staticImportedStatefulWithQuery).not.toBe(
176180
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)