test: move root contract fixture · openclaw/openclaw@b8a4d6a
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
File tree
apps/shared/OpenClawKit/Tests/OpenClawKitTests
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,7 +58,7 @@ private enum TalkConfigContractFixtureLoader {
|
58 | 58 | private static func findFixtureURL(startingAt fileURL: URL) throws -> URL { |
59 | 59 | var directory = fileURL.deletingLastPathComponent() |
60 | 60 | while directory.path != "/" { |
61 | | -let candidate = directory.appendingPathComponent("test-fixtures/talk-config-contract.json") |
| 61 | +let candidate = directory.appendingPathComponent("test/fixtures/talk-config-contract.json") |
62 | 62 | if FileManager.default.fileExists(atPath: candidate.path) { |
63 | 63 | return candidate |
64 | 64 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -177,7 +177,7 @@ export function detectChangedLanes(changedPaths, options = {}) {
|
177 | 177 | continue; |
178 | 178 | } |
179 | 179 | |
180 | | -if (changedPath.startsWith("test/")) { |
| 180 | +if (changedPath.startsWith("test/") || changedPath.startsWith("test-fixtures/")) { |
181 | 181 | lanes.tooling = true; |
182 | 182 | reasons.push(`${changedPath}: root test/support surface`); |
183 | 183 | continue; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ type TalkConfigContractFixture = {
|
30 | 30 | timeoutCases: TimeoutContractCase[]; |
31 | 31 | }; |
32 | 32 | |
33 | | -const fixturePath = new URL("../../../test-fixtures/talk-config-contract.json", import.meta.url); |
| 33 | +const fixturePath = new URL("../../../test/fixtures/talk-config-contract.json", import.meta.url); |
34 | 34 | const fixtures = JSON.parse(fs.readFileSync(fixturePath, "utf-8")) as TalkConfigContractFixture; |
35 | 35 | |
36 | 36 | describe("talk.config contract fixtures", () => { |
|
File renamed without changes.
| Original file line number | Diff line number | Diff line change |
|---|
@@ -743,7 +743,10 @@ describe("scripts/changed-lanes", () => {
|
743 | 743 | }); |
744 | 744 | |
745 | 745 | it("routes root test/support changes to the tooling test lane instead of all lanes", () => { |
746 | | -const result = detectChangedLanes(["test/git-hooks-pre-commit.test.ts"]); |
| 746 | +const result = detectChangedLanes([ |
| 747 | +"test/git-hooks-pre-commit.test.ts", |
| 748 | +"test-fixtures/legacy-root-fixture.json", |
| 749 | +]); |
747 | 750 | const plan = createChangedCheckPlan(result); |
748 | 751 | |
749 | 752 | expect(result.lanes).toMatchObject({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。