eslint: Suppress 'JestMockFn' is not defined
This commit is contained in:
@ -16,6 +16,8 @@ type RpcResponse = {
|
|||||||
|
|
||||||
export const mockRpc: Array<[string, RpcRequest, 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(
|
const mock: JestMockFn<any, any> = jest.fn(
|
||||||
(fetchUrl, fetchOptions) => {
|
(fetchUrl, fetchOptions) => {
|
||||||
expect(mockRpc.length).toBeGreaterThanOrEqual(1);
|
expect(mockRpc.length).toBeGreaterThanOrEqual(1);
|
||||||
|
Reference in New Issue
Block a user