✨ feat(App): add page tracking

This commit is contained in:
2025-05-28 10:29:48 +00:00
parent bf6d945c61
commit e0f90d5d87
6 changed files with 77 additions and 41 deletions
+7
View File
@@ -1,7 +1,14 @@
import { render, screen } from '@testing-library/react'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { useAnalytics } from 'use-analytics'
import App from './App'
// Mock the analytics module
vi.mock('use-analytics', () => ({
useAnalytics: () => ({ plugins: { enable: vi.fn(), disable: vi.fn() }, page: vi.fn() }),
}))
describe('App component', () => {
test('renders MainPage without crashing', async () => {
render(<App />)