Merge remote-tracking branch 'guunergooner/fix/openai-stop-reason-usage'

This commit is contained in:
claude-code-best
2026-04-10 22:27:16 +08:00
6 changed files with 865 additions and 61 deletions

View File

@@ -1,6 +1,16 @@
import { describe, expect, test } from "bun:test";
import { describe, expect, test, beforeAll, afterAll } from "bun:test";
import { formatBriefTimestamp } from "../formatBriefTimestamp";
let savedLcAll: string | undefined;
beforeAll(() => {
savedLcAll = process.env.LC_ALL;
process.env.LC_ALL = "en_US.UTF-8";
});
afterAll(() => {
if (savedLcAll === undefined) delete process.env.LC_ALL;
else process.env.LC_ALL = savedLcAll;
});
describe("formatBriefTimestamp", () => {
// Fixed "now" for deterministic tests: 2026-04-02T14:00:00Z (Thursday)
const now = new Date("2026-04-02T14:00:00Z");