test(server): fix test failures

This commit is contained in:
Elian Doran 2025-10-07 14:27:05 +03:00
parent fa436c7ce6
commit c671f91bca
No known key found for this signature in database
2 changed files with 66 additions and 65 deletions

View File

@ -16,7 +16,8 @@ vi.mock("../../services/ws.js", () => ({
default: {
sendMessageToAllClients: vi.fn(),
sendTransactionEntityChangesToAllClients: vi.fn(),
setLastSyncedPush: vi.fn()
setLastSyncedPush: vi.fn(),
syncFailed() {}
}
}));

View File

@ -1,6 +1,6 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { StreamProcessor, createStreamHandler, processProviderStream, extractStreamStats, performProviderHealthCheck } from './stream_handler.js';
import type { StreamProcessingOptions, StreamChunk, ProviderStreamOptions } from './stream_handler.js';
import type { StreamProcessingOptions, StreamChunk } from './stream_handler.js';
// Mock the log module
vi.mock('../../log.js', () => ({