test: suppress console.log output in eventStream test

Added console.log mock in eventStream.test.js to suppress the 'EventStream error' message that was appearing during test execution. This improves test output cleanliness by preventing the expected error logging from the eventStream error handling code from cluttering the test console output.

The mock follows the existing pattern used in the codebase for suppressing console output during tests and only affects the test environment, preserving the original logging functionality in production code.
This commit is contained in:
Deluan
2025-07-10 18:00:37 -03:00
parent 1166a0fabf
commit e8a3495c70

View File

@@ -32,6 +32,8 @@ describe('startEventStream', () => {
localStorage.setItem('is-authenticated', 'true')
localStorage.setItem('token', 'abc')
config.devNewEventStream = true
// Mock console.log to suppress output during tests
vi.spyOn(console, 'log').mockImplementation(() => {})
})
afterEach(() => {