import { describe, it, expect, beforeEach, vi } from 'vitest'; import React from 'react'; import { render, screen, waitFor, fireEvent } from '../../tests/helpers/render'; import { resetAllStores, seedStore } from '../../tests/helpers/store'; import { buildUser } from '../../tests/helpers/factories'; import { useAuthStore } from '../store/authStore'; import { useVacayStore } from '../store/vacayStore'; import VacayPage from './VacayPage'; import * as websocket from '../api/websocket'; vi.mock('../components/Vacay/VacayCalendar', () => ({ default: () =>
, })); vi.mock('../components/Vacay/VacayPersons', () => ({ default: () =>
, })); vi.mock('../components/Vacay/VacayStats', () => ({ default: () =>
, })); vi.mock('../components/Vacay/VacaySettings', () => ({ default: ({ onClose }: { onClose: () => void }) => (
), })); vi.mock('../components/Layout/Navbar', () => ({ default: () =>