Skip to content

Commit

Permalink
Override module.createRequire
Browse files Browse the repository at this point in the history
  • Loading branch information
doniyor2109 committed Feb 1, 2020
1 parent 1bac894 commit 6911e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ class Runtime {
});
};

const overriddenModules: Partial<typeof nativeModule> = {};
const overriddenModules: Record<string, any> = {};

if ('createRequire' in nativeModule) {
overriddenModules.createRequire = createRequire;
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2243,12 +2243,7 @@
dependencies:
"@types/node" "*"

"@types/node@*":
version "13.7.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.7.0.tgz#b417deda18cf8400f278733499ad5547ed1abec4"
integrity sha512-GnZbirvmqZUzMgkFn70c74OQpTTUcCzlhQliTzYjQMqg+hVKcDnxdL19Ne3UdYzdMA/+W3eb646FWn/ZaT1NfQ==

"@types/node@>= 8":
"@types/node@*", "@types/node@>= 8":
version "13.1.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.8.tgz#1d590429fe8187a02707720ecf38a6fe46ce294b"
integrity sha512-6XzyyNM9EKQW4HKuzbo/CkOIjn/evtCmsU+MUM1xDfJ+3/rNjBttM1NgN7AOQvN6tP1Sl1D1PIKMreTArnxM9A==
Expand Down

0 comments on commit 6911e72

Please sign in to comment.