Skip to content

Commit 139e985

Browse files
authored
chore: migrated checkinwrapper tests jest to vitest (#2709)
1 parent 3d6b6bc commit 139e985

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/components/CheckIn/CheckInWrapper.test.tsx renamed to src/components/CheckIn/CheckInWrapper.spec.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,27 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
1313
import { checkInQueryMock } from './mocks';
1414
import { StaticMockLink } from 'utils/StaticMockLink';
1515

16+
/**
17+
* This file contains unit tests for the CheckInWrapper component.
18+
*
19+
* The tests cover:
20+
* - Rendering and behavior of the modal component.
21+
* - Functionality of the button to open and close the modal.
22+
* - Integration with mocked GraphQL queries for testing Apollo Client.
23+
*
24+
* Purpose:
25+
* These tests ensure that the CheckInWrapper component behaves as expected
26+
* when opening and closing modals, and correctly integrates with its dependencies.
27+
*/
28+
1629
const link = new StaticMockLink(checkInQueryMock, true);
1730

1831
describe('Testing CheckIn Wrapper', () => {
1932
const props = {
2033
eventId: 'event123',
2134
};
2235

23-
test('The button to open and close the modal should work properly', async () => {
36+
it('The button to open and close the modal should work properly', async () => {
2437
render(
2538
<MockedProvider addTypename={false} link={link}>
2639
<BrowserRouter>

0 commit comments

Comments
 (0)