mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 03:33:04 +08:00
- 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.