Scaffold TypeScript project and add core logger

This commit is contained in:
2026-08-12 20:50:40 +02:00
parent abfbc1e2da
commit a9a8fa7c3f
9 changed files with 3116 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest';
import { createLogger } from '../../../src/core/logging/logger';
describe('createLogger', () => {
it('creates a pino logger with the given name bound', () => {
const logger = createLogger('test-logger');
expect(logger.bindings().name).toBe('test-logger');
expect(typeof logger.info).toBe('function');
expect(typeof logger.error).toBe('function');
});
});