fix logging tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m56s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m56s
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
// src/services/logger.client.test.ts
|
// src/services/logger.client.test.ts
|
||||||
import { describe, it, expect, vi, afterEach } from 'vitest';
|
import { describe, it, expect, vi, afterEach } from 'vitest';
|
||||||
|
|
||||||
|
// IMPORTANT: Unmock the module to ensure we test the REAL implementation,
|
||||||
|
// not an auto-mocked version that doesn't actually call console methods.
|
||||||
|
vi.unmock('./logger.client');
|
||||||
|
|
||||||
import { logger } from './logger.client';
|
import { logger } from './logger.client';
|
||||||
|
|
||||||
console.log('Logger implementation:', logger);
|
console.log('Logger implementation:', logger);
|
||||||
|
|||||||
Reference in New Issue
Block a user