We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4edd8 commit 965a24cCopy full SHA for 965a24c
packages/jest-haste-map/src/lib/dependencyExtractor.ts
@@ -54,7 +54,7 @@ const REQUIRE_OR_DYNAMIC_IMPORT_RE = createRegExp(
54
55
const IMPORT_OR_EXPORT_RE = createRegExp(
56
[
57
- '\\b(?:import|export)\\s+(?!type(?:of)?\\s+)[^\'"]+\\s+from\\s+',
+ '\\b(?:import|export)\\s+(?!type(?:of)?\\s+)(?:[^\'"]+\\s+from\\s+)?',
58
CAPTURE_STRING_LITERAL(1),
59
],
60
'g',
0 commit comments