fix(web): 標示 AIOps 範例資料模式
This commit is contained in:
@@ -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),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user