Files
galaxy/client/tests
davelopez c1f01a6ec7 Fixes console suppression helpers — crash safety and remove redundant vi.fn()
- Remove the vi.fn() wrapper inside mockImplementation() in all suppress* helpers.
  mockImplementation already accepts a plain function; the wrapping adds noise and
  no mock-tracking value.

- Replace msg.indexOf(str) >= 0 with String(msg).includes(str) in
  suppressErrorForCustomIcons, suppressLucideVue2Deprecation, and the new
  suppressExpectedErrorMessages. These functions were crashing when console.*
  was called with a non-string argument (e.g., an Error object).

- suppressBootstrapVueWarnings had a typeof guard for the same reason; replace
  both guards with the simpler String() conversion for consistency.

- Remove pre-existing unused 'test' import (caught by eslint).

No behavior change for string arguments; non-string arguments no longer throw.
2026-03-03 18:01:52 +01:00
..