test: tighten scoped channel config assertions · openclaw/openclaw@32ffbd0
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -396,7 +396,7 @@ describe("scoped vitest configs", () => {
|
396 | 396 | }); |
397 | 397 | |
398 | 398 | it("keeps the core channel lane limited to non-extension roots", () => { |
399 | | -expect(defaultChannelsConfig.test?.include).toEqual(["src/channels/**/*.test.ts"]); |
| 399 | +expect(requireTestConfig(defaultChannelsConfig).include).toEqual(["src/channels/**/*.test.ts"]); |
400 | 400 | }); |
401 | 401 | |
402 | 402 | it("loads channel include overrides from OPENCLAW_VITEST_INCLUDE_FILE", () => { |
@@ -419,7 +419,7 @@ describe("scoped vitest configs", () => {
|
419 | 419 | OPENCLAW_VITEST_INCLUDE_FILE: includeFile, |
420 | 420 | }); |
421 | 421 | |
422 | | -expect(config.test?.include).toEqual([ |
| 422 | +expect(requireTestConfig(config).include).toEqual([ |
423 | 423 | bundledPluginFile("discord", "src/monitor/message-handler.preflight.acp-bindings.test.ts"), |
424 | 424 | ]); |
425 | 425 | } finally { |
@@ -428,11 +428,7 @@ describe("scoped vitest configs", () => {
|
428 | 428 | }); |
429 | 429 | |
430 | 430 | it("defaults extension tests to threads with the non-isolated runner", () => { |
431 | | -expect(defaultExtensionsConfig.test?.isolate).toBe(false); |
432 | | -expect(defaultExtensionsConfig.test?.pool).toBe("threads"); |
433 | | -expect(normalizeConfigPath(defaultExtensionsConfig.test?.runner)).toBe( |
434 | | -"test/non-isolated-runner.ts", |
435 | | -); |
| 431 | +expectThreadedNonIsolatedRunner(defaultExtensionsConfig); |
436 | 432 | }); |
437 | 433 | |
438 | 434 | it("normalizes split extension channel include patterns relative to the scoped dir", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。