Files
awoooi/apps/web/vitest.config.ts
OG T 22de22c989 refactor(phase-s): Phase S 技術債清理 - 五項架構改善
S-01: generate_alert_fingerprint() 移至 alert_analyzer_service (Router→Service)
S-02: 移除廢棄 USE_NEW_ENGINE config (Phase R 已完成歷史使命)
S-03: github_webhook.py linter 清理 (Field unused + delivery_id noqa)
S-04: Pydantic v2 遷移 - approval/incident models (class Config → ConfigDict)
S-05: Skill 09 v1.1 更新 (USE_NEW_ENGINE 廢棄說明)

測試: 393 passed, 零失敗

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:12:02 +08:00

24 lines
573 B
TypeScript

/**
* Vitest 設定
* ===========
* Phase 19.6: GenUI Registry 單元測試
*
* 測試範圍: 純 TypeScript 邏輯 (Zod Schema + Registry API)
* 不包含 React 渲染測試 (由 Playwright E2E 覆蓋)
*
* Phase 19.6 ogt 2026-03-31 (台北時間)
*/
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
// Node 環境 — 純邏輯測試,不需 DOM
environment: 'node',
globals: true,
include: ['src/**/__tests__/**/*.test.ts'],
// React lazy 需要 Mock (registry.ts 中使用)
setupFiles: [],
},
})