fix: resolve remaining agent-hermes test failures
CI / check (pull_request) Failing after 12s

- Update issue-551 test: assert bun engines removed (not present)
- Migrate session-detail tests from bun:sqlite to better-sqlite3 API
  (db.exec for DDL, db.prepare().run() for inserts)

Refs #26
This commit is contained in:
2026-06-03 14:39:20 +00:00
parent e5e6de2fad
commit 8cb74672bc
2 changed files with 42 additions and 69 deletions
@@ -7,11 +7,9 @@ import { join } from "node:path";
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
describe("Issue #551 — bin entry & engines", () => {
test("package.json declares bun in engines", () => {
test("package.json no longer declares bun in engines", () => {
const pkg = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf-8"));
expect(pkg.engines).toBeDefined();
expect(pkg.engines.bun).toBeDefined();
expect(pkg.engines.bun).toMatch(/^>=?\s*[\d.]+/);
expect(pkg.engines?.bun).toBeUndefined();
});
test("bin entry file has bun shebang", () => {