Implement basic tests for webui

This commit is contained in:
2025-07-26 19:20:09 +02:00
parent e7d95e934c
commit 4334b40fa9
15 changed files with 3188 additions and 158 deletions

10
webui/src/test/setup.ts Normal file
View File

@@ -0,0 +1,10 @@
import '@testing-library/jest-dom'
import { afterEach, vi } from 'vitest'
// Mock fetch globally since your app uses fetch
global.fetch = vi.fn()
// Clean up after each test
afterEach(() => {
vi.clearAllMocks()
})