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 Mar 29, 2020
1 parent 9d68342 commit 8855c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-runtime/src/index.ts
Expand Up @@ -315,7 +315,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 8855c28

Please sign in to comment.