feat(ci): replace jest with vitest [EE-6504] (#10997)

This commit is contained in:
Chaim Lev-Ari
2024-01-23 08:42:52 +02:00
committed by GitHub
parent 4a19871fcc
commit 69c06bc756
34 changed files with 1137 additions and 1680 deletions

View File

@@ -6,9 +6,9 @@ import { renderWithQueryClient } from '@/react-tools/test-utils';
import { CreateContainerInstanceForm } from './CreateContainerInstanceForm';
jest.mock('@uirouter/react', () => ({
...jest.requireActual('@uirouter/react'),
useCurrentStateAndParams: jest.fn(() => ({
vi.mock('@uirouter/react', async (importOriginal: () => Promise<object>) => ({
...(await importOriginal()),
useCurrentStateAndParams: vi.fn(() => ({
params: { endpointId: 5 },
})),
}));