test: tighten sdk alias missing-subpath assertion · openclaw/openclaw@f9814cc
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1269,7 +1269,14 @@ export const syntheticRuntimeMarker = {
|
1269 | 1269 | ...buildPluginLoaderJitiOptions({}), |
1270 | 1270 | tryNative: false, |
1271 | 1271 | }); |
1272 | | -expect(() => withoutAlias(copiedChannelRuntime)).toThrow(); |
| 1272 | +let loadError: unknown; |
| 1273 | +try { |
| 1274 | +withoutAlias(copiedChannelRuntime); |
| 1275 | +} catch (error) { |
| 1276 | +loadError = error; |
| 1277 | +} |
| 1278 | +expect(loadError).toBeInstanceOf(Error); |
| 1279 | +expect((loadError as Error).message).toContain("outbound-send-deps"); |
1273 | 1280 | |
1274 | 1281 | const withAlias = createJiti(sourceLoaderBaseUrl, { |
1275 | 1282 | ...buildPluginLoaderJitiOptions({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。