Handle dynamic imports in a smart way in Jest
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
When Jest dynamically loads modules during a test, it can cause the first test to timeout. A brute-force fix for this is to simply eagerly load modules in the offending spec, but maybe there's a more elegant way?
Context
The following discussion from !21856 (merged) should be addressed:
-
@winh started a discussion: (+2 comments) I wonder if we can somehow hook into dynamic imports OR make Jest load all dynamic imports eagerly.
Food for thought in a follow-up issue?
Edited by 🤖 GitLab Bot 🤖