Skip to content
/ jest Public
forked from jestjs/jest

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
Original file line number Diff line number Diff line change
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.