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>
24 lines
573 B
TypeScript
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: [],
|
|
},
|
|
})
|