Skip to content

Commit

Permalink
Check _isMockFunction is true rather than truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ristea committed Sep 21, 2018
1 parent ee751bf commit e651ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class Runtime {
(typeof globalMock === 'object' && globalMock !== null) ||
typeof globalMock === 'function'
) {
globalMock._isMockFunction && globalMock.mockClear();
globalMock._isMockFunction === true && globalMock.mockClear();
}
});

Expand Down

0 comments on commit e651ed3

Please sign in to comment.