Files
ghbot/test/logger-child.test.ts
T
wdawdwaandClaude Opus 4.8 039acabd96 fix: production hardening for merge races, timeouts, and webhook ops
Pin merge SHA, lock conflict repair, bound subprocess/proxy output,
fail-fast incomplete R2/webhook config, redact validation/stderr
secrets, and document that webhook 202 is best-effort after ACK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-23 15:44:08 +08:00

15 lines
427 B
TypeScript

import assert from "node:assert/strict";
import test from "node:test";
import { createEventLogger } from "../src/logger.js";
test("event logger child bindings include owner/repo/eventName", () => {
const child = createEventLogger({
eventName: "issue_comment",
owner: "acme",
repo: "demo",
pullNumber: 7
});
assert.equal(typeof child.info, "function");
assert.equal(typeof child.error, "function");
});