Remove direct modification of component instance
What does this MR do and why?
Resolves Fix spec violations in spec/frontend/work_items... (#413390 - closed) as part of Improve quality of Vue-related frontend testing... (&5102).
This MR removes direct modification of component instance (wrapper.vm.$refs.wrapper.show = jest.fn();
) violation in spec/frontend/work_items/components/work_item_links/work_item_links_spec.js
.
How to set up and validate locally
- Check that there are no failing frontend test pipeline jobs.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eugie Limpin