Skip to content

Commit a7f49ef

Browse files
committed
fix import for vitest
1 parent f85d183 commit a7f49ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Extensibility/tests/useGetCRDByPath.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { RecoilRoot } from 'recoil';
66
let mockNamespaceId = 'namespaceId';
77
let mockCrds = [];
88

9-
vi.mock('react-router-dom', async () => ({
10-
...(await vi.importActual('react-router-dom')),
9+
vi.mock('react-router', async () => ({
10+
...(await vi.importActual('react-router')),
1111
useParams: () => ({
1212
namespaceId: mockNamespaceId,
1313
}),

0 commit comments

Comments
 (0)