Skip to content

Commit ef91356

Browse files
committed
fix typecheck:tests type err
1 parent 6e5b1d6 commit ef91356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-snapshot/src/__tests__/mockSerializer.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('mock with 0 calls and default name', () => {
1414
});
1515

1616
test('mock with 2 calls, 1 return, 1 throw', () => {
17-
const fn = jest.fn(value => {
17+
const fn = jest.fn((value: number) => {
1818
if (value % 2 === 0) {
1919
return value * 2;
2020
} else {

0 commit comments

Comments
 (0)