Chore: Fix some more typescript strict errors (#37750)

This commit is contained in:
Ashley Harrison
2021-08-11 09:10:41 +01:00
committed by GitHub
parent 4cf097c4e5
commit 181d6a78ed
7 changed files with 31 additions and 44 deletions

View File

@@ -7,7 +7,9 @@ import { SelectableValue } from '@grafana/data';
// eslint-disable-next-line lodash/import-scope
import _, { Cancelable } from 'lodash';
jest.spyOn(_, 'debounce').mockImplementation((func: ((...args: any) => any) & Cancelable, wait: number) => func);
jest
.spyOn(_, 'debounce')
.mockImplementation((func: (...args: any) => any, wait?: number) => func as typeof func & Cancelable);
describe('CloudWatchLogsQueryField', () => {
it('updates upstream query log groups on region change', async () => {