mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 19:01:44 +00:00
fix(hooks): avoid repo-wide format churn
This commit is contained in:
@@ -73,7 +73,7 @@ describe("git-hooks/pre-commit (integration)", () => {
|
||||
expect(staged).toEqual(["--all"]);
|
||||
});
|
||||
|
||||
it("skips pnpm format and pnpm check when FAST_COMMIT is enabled", () => {
|
||||
it("skips pnpm check when FAST_COMMIT is enabled", () => {
|
||||
const dir = mkdtempSync(path.join(os.tmpdir(), "openclaw-pre-commit-yolo-"));
|
||||
run(dir, "git", ["init", "-q", "--initial-branch=main"]);
|
||||
|
||||
@@ -116,8 +116,6 @@ describe("git-hooks/pre-commit (integration)", () => {
|
||||
FAST_COMMIT: "1",
|
||||
});
|
||||
|
||||
expect(output).toContain(
|
||||
"FAST_COMMIT enabled: skipping pnpm format and pnpm check in pre-commit hook.",
|
||||
);
|
||||
expect(output).toContain("FAST_COMMIT enabled: skipping pnpm check in pre-commit hook.");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user