test: tighten compile cache bridge assertion · openclaw/openclaw@45d67b9
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -155,9 +155,9 @@ describe("entry compile cache", () => {
|
155 | 155 | env: { NODE_DISABLE_COMPILE_CACHE: "1" }, |
156 | 156 | }, |
157 | 157 | ); |
158 | | -expect(attachChildProcessBridge).toHaveBeenCalledWith(child, { |
159 | | - onSignal: expect.any(Function), |
160 | | -}); |
| 158 | +expect(attachChildProcessBridge.mock.calls[0]?.[0]).toBe(child); |
| 159 | +const bridgeOptions = attachChildProcessBridge.mock.calls[0]?.[1]; |
| 160 | +expect(typeof bridgeOptions?.onSignal).toBe("function"); |
161 | 161 | |
162 | 162 | child.emit("exit", 0, null); |
163 | 163 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。