diff --git a/packages/jest-runtime/src/index.ts b/packages/jest-runtime/src/index.ts index cb74daf324af..ab22ea07b022 100644 --- a/packages/jest-runtime/src/index.ts +++ b/packages/jest-runtime/src/index.ts @@ -915,7 +915,7 @@ class Runtime { }); }; - const overriddenModules: Partial = {}; + const overriddenModules: Record = {}; if ('createRequire' in nativeModule) { overriddenModules.createRequire = createRequire; diff --git a/yarn.lock b/yarn.lock index d8017cdcf6c5..857ae62aa0d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==