Skip to content

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 7, 2021
1 parent 31106e9 commit 3a04055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.ts
Expand Up @@ -1772,7 +1772,7 @@ export default class Runtime {
mockFactory,
options,
) => {
if (mockFactory === undefined) {
if (typeof mockFactory !== 'function') {
throw new Error('`unstable_mockModule` must be passed a mock factory');
}

Expand Down

0 comments on commit 3a04055

Please sign in to comment.