31cf9ceef7
- 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/
12 lines
323 B
TypeScript
12 lines
323 B
TypeScript
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");
|
|
});
|
|
});
|