Skip to content

Commit 35d2113

Browse files
committed
Lint fixes
1 parent 19b65b8 commit 35d2113

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/navigation/isActiveRouteTests.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {afterEach, beforeEach, describe, expect, it, jest} from '@jest/globals';
2-
import type {Route} from '@src/ROUTES';
2+
import type {getPathFromState as GetPathFromState} from '@react-navigation/native';
33
import Navigation from '@libs/Navigation/Navigation';
44
import navigationRef from '@libs/Navigation/navigationRef';
5-
import type {getPathFromState as GetPathFromState} from '@react-navigation/native';
5+
import type {Route} from '@src/ROUTES';
66

77
jest.mock('@react-navigation/native', () => {
88
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
@@ -21,7 +21,7 @@ describe('Navigation', () => {
2121
beforeEach(() => {
2222
// Minimal stubs so getActiveRoute() can derive a path without rendering navigation containers.
2323
const ref = navigationRef as typeof navigationRef & {current: {getCurrentRoute: () => {name: string}} | null};
24-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
24+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
2525
ref.current = {getCurrentRoute: jest.fn().mockReturnValue({name: 'test'})} as any;
2626
jest.spyOn(navigationRef, 'getRootState').mockReturnValue({} as unknown as ReturnType<typeof navigationRef.getRootState>);
2727
jest.spyOn(navigationRef, 'isReady').mockReturnValue(true);

0 commit comments

Comments
 (0)