test: run single-channel extension batches · openclaw/openclaw@7f637ea
steipete
·
2026-04-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -120,6 +120,17 @@ describe("createScopedVitestConfig", () => {
|
120 | 120 | expect(config.test?.include).toEqual(["example.test.ts"]); |
121 | 121 | }); |
122 | 122 | |
| 123 | +it("keeps scoped cli directory filters aligned with repo-root include patterns", () => { |
| 124 | +const config = createScopedVitestConfig(["extensions/slack/**/*.test.ts"], { |
| 125 | +argv: ["vitest", "run", "extensions/slack"], |
| 126 | +dir: "extensions", |
| 127 | +env: {}, |
| 128 | +passWithNoTests: true, |
| 129 | +}); |
| 130 | + |
| 131 | +expect(config.test?.include).toEqual(["slack/**/*.test.*"]); |
| 132 | +}); |
| 133 | + |
123 | 134 | it("relativizes scoped include and exclude patterns to the configured dir", () => { |
124 | 135 | const config = createScopedVitestConfig([BUNDLED_PLUGIN_TEST_GLOB], { |
125 | 136 | dir: "extensions", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。