@xylabs/logger
Advanced tools
+8
-5
| { | ||
| "name": "@xylabs/logger", | ||
| "version": "5.0.34", | ||
| "version": "5.0.35", | ||
| "description": "XYLabs Logger Library", | ||
@@ -42,8 +42,11 @@ "keywords": [ | ||
| "dist", | ||
| "src" | ||
| "src", | ||
| "!**/*.bench.*", | ||
| "!**/*.spec.*", | ||
| "!**/*.test.*" | ||
| ], | ||
| "dependencies": { | ||
| "@xylabs/enum": "~5.0.34", | ||
| "@xylabs/error": "~5.0.34", | ||
| "@xylabs/typeof": "~5.0.34" | ||
| "@xylabs/enum": "~5.0.35", | ||
| "@xylabs/error": "~5.0.35", | ||
| "@xylabs/typeof": "~5.0.35" | ||
| }, | ||
@@ -50,0 +53,0 @@ "devDependencies": { |
| export {}; | ||
| //# sourceMappingURL=IdLogger.spec.d.ts.map |
| {"version":3,"file":"IdLogger.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/IdLogger.spec.ts"],"names":[],"mappings":""} |
| import { | ||
| describe, expect, test, | ||
| } from 'vitest' | ||
| import { ConsoleLogger } from '../ConsoleLogger.ts' | ||
| import { IdLogger } from '../IdLogger.ts' | ||
| describe('Logger', () => { | ||
| test('checking happy path', () => { | ||
| const logger = new IdLogger(new ConsoleLogger(), () => 'TestLoggerId') | ||
| expect(logger).toBeDefined() | ||
| const testLogFunc = () => { | ||
| logger.warn('Test Log') | ||
| } | ||
| testLogFunc() | ||
| }) | ||
| }) |
41634
-1.28%26
-10.34%350
-4.37%Updated
Updated
Updated