From 1dbe483ecd42a2d670daf26bd37002dbfab2aaa2 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Mon, 30 Oct 2017 13:33:51 +0100 Subject: [PATCH 1/2] Add jest.setMock to the list of transformed jest functions --- src/normalizeOptions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/normalizeOptions.js b/src/normalizeOptions.js index 30c55fa..bcda6e6 100644 --- a/src/normalizeOptions.js +++ b/src/normalizeOptions.js @@ -19,6 +19,7 @@ const defaultTransformedFunctions = [ 'jest.unmock', 'jest.doMock', 'jest.dontMock', + 'jest.setMock', ]; function isRegExp(string) { From 18ef912055e904ef82750d32dbf148b8c35d40e8 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Mon, 30 Oct 2017 13:35:26 +0100 Subject: [PATCH 2/2] Add test --- test/call.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/call.test.js b/test/call.test.js index 0c2ada6..fb0e15e 100644 --- a/test/call.test.js +++ b/test/call.test.js @@ -12,6 +12,7 @@ const calls = [ 'jest.unmock', 'jest.doMock', 'jest.dontMock', + 'jest.setMock', ]; describe('function and method calls', () => {