chore: add eslint/prettier gates and fix windows test failures

This commit is contained in:
wdawdwa committed 2026-08-22 15:16:47 +08:00
1 parent b366e16087
commit b47302e2ff
42 files changed
+3460 -843

No files matched your search

+19 -17
View File
@@ -3,24 +3,26 @@ import test from "node:test";
import { parseReviewCacheContent } from "../src/review/cache.js";
test("review cache parser accepts the structured review result", () => {
const parsed = parseReviewCacheContent(JSON.stringify({
version: 1,
repository: "forumlify/public",
pullNumber: 17,
headSha: "a".repeat(40),
reviewedAt: "2026-08-13T00:00:00.000Z",
decision: {
review: [],
change: [],
comment: "Looks good.",
result: {
canMerge: true,
summary: "Safe to merge.",
shouldClosePullRequest: false,
closeReason: ""
const parsed = parseReviewCacheContent(
JSON.stringify({
version: 1,
repository: "forumlify/public",
pullNumber: 17,
headSha: "a".repeat(40),
reviewedAt: "2026-08-13T00:00:00.000Z",
decision: {
review: [],
change: [],
comment: "Looks good.",
result: {
canMerge: true,
summary: "Safe to merge.",
shouldClosePullRequest: false,
closeReason: ""
}
}
}
}));
})
);
assert.equal(parsed.repository, "forumlify/public");
assert.equal(parsed.pullNumber, 17);
assert.equal(parsed.decision.result.canMerge, true);