diff --git a/test-apps/shared/config-loader.ts b/test-apps/shared/config-loader.ts index 3306f69..b3ba1bf 100644 --- a/test-apps/shared/config-loader.ts +++ b/test-apps/shared/config-loader.ts @@ -369,28 +369,28 @@ export class TestLogger { public debug(message: string, data?: Record): void { if (this.shouldLog('debug')) { - console.log(`[DEBUG] ${message}`, data || ''); + // console.log(`[DEBUG] ${message}`, data || ''); this.addToLogs('debug', message, data); } } - public info(message: string, data?: Record) { + public info(message: string, data?: Record): void { if (this.shouldLog('info')) { - console.log(`[INFO] ${message}`, data || ''); + // console.log(`[INFO] ${message}`, data || ''); this.addToLogs('info', message, data); } } - public warn(message: string, data?: Record) { + public warn(message: string, data?: Record): void { if (this.shouldLog('warn')) { - console.warn(`[WARN] ${message}`, data || ''); + // console.warn(`[WARN] ${message}`, data || ''); this.addToLogs('warn', message, data); } } - public error(message: string, data?: Record) { + public error(message: string, data?: Record): void { if (this.shouldLog('error')) { - console.error(`[ERROR] ${message}`, data || ''); + // console.error(`[ERROR] ${message}`, data || ''); this.addToLogs('error', message, data); } } diff --git a/tests/setup.ts b/tests/setup.ts index da65b42..20f9e2d 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -7,8 +7,8 @@ import { jest, afterEach } from '@jest/globals'; // Mock Capacitor plugin jest.mock('@capacitor/core', () => ({ Capacitor: { - isNativePlatform: () => false, - getPlatform: () => 'web', + isNativePlatform: (): boolean => false, + getPlatform: (): string => 'web', }, WebPlugin: class { constructor() {