We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ebe20 commit f5fc5b8Copy full SHA for f5fc5b8
1 file changed
tests/RequestLeave.test.tsx
@@ -3,7 +3,7 @@ import { render, screen, fireEvent, waitFor, within } from '@testing-library/rea
3
import React from 'react'
4
import { RequestLeave } from '../src/components/Holidays/RequestLeave'
5
6
-// Mock toast - use vi.hoisted to ensure mocks are available before vi.mock runs
+// Mock toast - use vi.hoisted to ensure mocks are available, before vi.mock runs
7
const { mockToast, routerMock } = vi.hoisted(() => ({
8
mockToast: {
9
error: vi.fn(),
0 commit comments