Skip to content

Commit a7c04b0

Browse files
danezfatfisz
authored andcommitted
feat: Add jest.setMock to the list of transformed jest functions (#225)
1 parent ba978d8 commit a7c04b0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/normalizeOptions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const defaultTransformedFunctions = [
1919
'jest.unmock',
2020
'jest.doMock',
2121
'jest.dontMock',
22+
'jest.setMock',
2223
];
2324

2425
function isRegExp(string) {

test/call.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const calls = [
1212
'jest.unmock',
1313
'jest.doMock',
1414
'jest.dontMock',
15+
'jest.setMock',
1516
];
1617

1718
describe('function and method calls', () => {

0 commit comments

Comments
 (0)