fix(web): 標示 AIOps 範例資料模式
All checks were successful
CD Pipeline / tests (push) Successful in 1m23s
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / build-and-deploy (push) Successful in 3m41s
CD Pipeline / post-deploy-checks (push) Successful in 2m7s

This commit is contained in:
Your Name
2026-06-05 01:28:31 +08:00
parent 96df223100
commit d5ce17c72d
10 changed files with 21 additions and 20 deletions

View File

@@ -9,7 +9,7 @@
* 3. getTerminalComponents — 只返回 allowInTerminal=true 的組件
* 4. validateProps — 錯誤碼分類 (UNKNOWN_COMPONENT / ZOD_VALIDATION_FAILED)
*
* 注意: registry.ts 使用 React.lazy在 Node 環境需要 Mock
* 注意registry.ts 使用 React.lazy在 Node 環境需以測試替身隔離 lazy 載入
*
* @see ADR-032 GenUI Dynamic Rendering
* Phase 19.6 ogt 2026-03-31 (台北時間)
@@ -17,7 +17,7 @@
import { vi, describe, it, expect, beforeAll } from 'vitest'
// ===== Mock React (lazy Node 環境無法執行) =====
// ===== React lazy 測試替身(Node 環境無法執行 lazy import =====
vi.mock('react', () => ({
lazy: vi.fn((factory: () => Promise<unknown>) => factory),
}))