Skip to content

Commit 7af3cd4

Browse files
author
Jack Pope
committed
remove jest.mocked
1 parent 9395fad commit 7af3cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ describe('ReactHooks', () => {
18991899
}).rejects.toThrow('Hello');
19001900

19011901
if (__DEV__) {
1902-
expect(jest.mocked(console.error)).toHaveBeenCalledTimes(2);
1902+
expect(console.error).toHaveBeenCalledTimes(2);
19031903
expect(console.error.mock.calls[0][0]).toContain(
19041904
'Warning: Cannot update a component (`%s`) while rendering ' +
19051905
'a different component (`%s`).',

0 commit comments

Comments
 (0)