Remove as any from requireActual usage (#51182)

This commit is contained in:
Josh Hunt
2022-06-21 17:48:38 +01:00
committed by GitHub
parent 53d03aec78
commit 98132fc7dc
16 changed files with 17 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ standardFieldConfigEditorRegistry.setInit(getAllStandardFieldConfigs);
const mockStore = configureMockStore<any, any>();
const OptionsPaneSelector = selectors.components.PanelEditor.OptionsPane;
jest.mock('react-router-dom', () => ({
...(jest.requireActual('react-router-dom') as any),
...jest.requireActual('react-router-dom'),
useLocation: () => ({
pathname: 'localhost:3000/example/path',
}),