Skip to content

Commit

Permalink
what about giving outer graceful?
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 24, 2020
1 parent c5417f6 commit 84bf591
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-runtime/src/index.ts
Expand Up @@ -312,7 +312,10 @@ class Runtime {
modulePath = manualMock;
}

if (moduleName && this._resolver.isCoreModule(moduleName)) {
if (
moduleName === 'graceful-fs' ||
(moduleName && this._resolver.isCoreModule(moduleName))
) {
return this._requireCoreModule(moduleName);
}

Expand Down

0 comments on commit 84bf591

Please sign in to comment.