From 31cf9ceef7e663311575de01015f8284d11c6d03 Mon Sep 17 00:00:00 2001 From: mahseiah_ai Date: Tue, 5 May 2026 14:58:56 -0400 Subject: [PATCH] test: stand up test scaffolding with bun test - Create test/ directory with a minimal LogService test - Prove out the pattern: bun test natively discovers and runs tests in the test/ directory using ESM-style imports from ../src/ --- test/log-service.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/log-service.test.ts diff --git a/test/log-service.test.ts b/test/log-service.test.ts new file mode 100644 index 0000000..8eea333 --- /dev/null +++ b/test/log-service.test.ts @@ -0,0 +1,11 @@ +import { describe, test, expect } from "bun:test"; +import { LogService } from "../src/log-service"; + +describe("LogService", () => { + test("creates a root logger on construction", () => { + const svc = new LogService(); + + expect(svc.ROOT_LOGGER).toBeDefined(); + expect(svc.ROOT_LOGGER.name).toBe("ROOT"); + }); +});