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 Apr 13, 2020
1 parent 759beba commit a402137
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 @@ -336,7 +336,10 @@ class Runtime {
return this.getGlobalsForFile(from);
}

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 a402137

Please sign in to comment.