Logo
Explore Help
Sign In
CubeCraft-Creations/Control-Center
10
0
Fork 0
You've already forked Control-Center
Code Issues Pull Requests 1 Actions 8 Packages Projects Releases Wiki Activity
Files
ffc127f12dc82715a489f8e6575a8cca57ab4320
Control-Center/frontend/vitest.config.ts

12 lines
243 B
TypeScript
Raw Normal View History

CUB-125: address Grimm review — tests, type fixes, error state circuit breaker - Add missing 'offline' to AgentStatus union type (types/index.ts) - Add max-retry circuit breaker to useSSE; error state is now reachable - Wire typed SSE payloads (SSEPayloadMap discriminated union) into useRealtimeSync - Add Vitest + 20 unit tests: useSSE lifecycle, back-off, circuit breaker, event parsing, cleanup; useRealtimeSync event-to-invalidation mapping - Rebase on dev to remove stale CUB-119 legacy-deletion commit and align CI workflow (dev already consolidated into single dev.yml) - Tests: npm test → 20/20 pass; Build: npm run build → 0 errors
2026-05-20 16:51:13 +00:00
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test-setup.ts'],
},
})
Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 34ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API