eslint: Suppress 'JestMockFn' is not defined

This commit is contained in:
Michael Vines 2018-08-24 10:54:02 -07:00
parent 92e602bd87
commit 9da3188a2d
1 changed files with 2 additions and 0 deletions

View File

@ -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<any, any> = jest.fn(
(fetchUrl, fetchOptions) => {
expect(mockRpc.length).toBeGreaterThanOrEqual(1);