diff --git a/packages/polling-contracts/src/__tests__/setup.ts b/packages/polling-contracts/src/__tests__/setup.ts index ab83750..daff2a2 100644 --- a/packages/polling-contracts/src/__tests__/setup.ts +++ b/packages/polling-contracts/src/__tests__/setup.ts @@ -10,14 +10,19 @@ const originalConsoleError = console.error; beforeAll(() => { // Allow console.log for debugging, but suppress other console methods // console.log = jest.fn(); + // eslint-disable-next-line no-console console.warn = jest.fn(); + // eslint-disable-next-line no-console console.error = jest.fn(); }); afterAll(() => { // Restore console methods + // eslint-disable-next-line no-console console.log = originalConsoleLog; + // eslint-disable-next-line no-console console.warn = originalConsoleWarn; + // eslint-disable-next-line no-console console.error = originalConsoleError; }); diff --git a/test-apps/electron-test/src/index.ts b/test-apps/electron-test/src/index.ts index c49a2f5..46fe891 100644 --- a/test-apps/electron-test/src/index.ts +++ b/test-apps/electron-test/src/index.ts @@ -480,7 +480,7 @@ class TimeSafariElectronTestApp { } } - private async testSchedule() { + private async testSchedule(): Promise { try { this.log('Testing TimeSafari Electron community notification scheduling...'); const config = this.configLoader.getConfig(); @@ -496,11 +496,11 @@ class TimeSafariElectronTestApp { retryAttempts: 3, retryDelay: 5000, callbacks: { - onSuccess: async (data: Record) => { + onSuccess: async (data: Record): Promise => { this.log('✅ Content fetch successful', data); await this.processEndorserNotificationBundle(data); }, - onError: async (error: Record) => { + onError: async (error: Record): Promise => { this.log('❌ Content fetch failed', error); } } @@ -621,7 +621,7 @@ class TimeSafariElectronTestApp { } } - private async testDebugInfo() { + private async testDebugInfo(): Promise { try { this.log('Testing Electron debug info...'); const debugInfo = { diff --git a/test-apps/ios-test/src/index.ts b/test-apps/ios-test/src/index.ts index 520aaf6..eb75117 100644 --- a/test-apps/ios-test/src/index.ts +++ b/test-apps/ios-test/src/index.ts @@ -477,7 +477,7 @@ class TimeSafariIOSTestApp { } } - private async testConfigure() { + private async testConfigure(): Promise { try { this.log('Testing TimeSafari iOS configuration...'); await this.configLoader.loadConfig(); @@ -496,7 +496,7 @@ class TimeSafariIOSTestApp { } } - private async testSchedule() { + private async testSchedule(): Promise { try { this.log('Testing TimeSafari iOS community notification scheduling...'); const config = this.configLoader.getConfig(); @@ -618,7 +618,7 @@ class TimeSafariIOSTestApp { } } - private async testCallbacks() { + private async testCallbacks(): Promise { try { this.log('Testing TimeSafari iOS notification callbacks...'); // const config = this.configLoader.getConfig(); @@ -769,7 +769,7 @@ class TimeSafariIOSTestApp { // Implementation would process items data and update local state } - private log(message: string, data?: Record) { + private log(message: string, data?: Record): void { const timestamp = new Date().toLocaleTimeString(); const logEntry = document.createElement('div'); logEntry.innerHTML = `[${timestamp}] ${message}`;