mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
fix(test): ignore local check opt-out in dev wrappers
This commit is contained in:
@@ -99,6 +99,19 @@ describe("scripts/changed-lanes", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("reenables local-check policy for changed typecheck commands", () => {
|
||||
const result = detectChangedLanes(["src/shared/string-normalization.ts"]);
|
||||
const plan = createChangedCheckPlan(result, {
|
||||
env: { OPENCLAW_LOCAL_CHECK: "0", PATH: "/usr/bin" },
|
||||
});
|
||||
|
||||
expect(plan.commands.find((command) => command.args[0] === "tsgo:core")?.env).toMatchObject({
|
||||
OPENCLAW_LOCAL_CHECK: "1",
|
||||
OPENCLAW_TSGO_SPARSE_SKIP: "1",
|
||||
PATH: "/usr/bin",
|
||||
});
|
||||
});
|
||||
|
||||
it("routes core test-only changes to core test lanes only", () => {
|
||||
const result = detectChangedLanes(["src/shared/string-normalization.test.ts"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user