From 9da3188a2d21ce97faff5aeb34cebd08543243ba Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 24 Aug 2018 10:54:02 -0700 Subject: [PATCH] eslint: Suppress 'JestMockFn' is not defined --- web3.js/test/__mocks__/node-fetch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web3.js/test/__mocks__/node-fetch.js b/web3.js/test/__mocks__/node-fetch.js index 77589a5280..b98ce78289 100644 --- a/web3.js/test/__mocks__/node-fetch.js +++ b/web3.js/test/__mocks__/node-fetch.js @@ -16,6 +16,8 @@ type RpcResponse = { export const mockRpc: Array<[string, RpcRequest, RpcResponse]> = []; +// Suppress lint: 'JestMockFn' is not defined +// eslint-disable-next-line no-undef const mock: JestMockFn = jest.fn( (fetchUrl, fetchOptions) => { expect(mockRpc.length).toBeGreaterThanOrEqual(1);