Skip to content

Remove jest.spyOn for internal component methods

Alex Pennells requested to merge 413369-vue3ify-test into master

What does this MR do and why?

Replace use of jest.spyOn(wrapper.vm, ...) with an equivalent validation. In this case, we can validate that the query params reflect the change of the selected VSA stage.

How to set up and validate locally

yarn jest ee/spec/frontend/analytics/cycle_analytics/components/base_spec.js

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #413369 (closed)

Merge request reports

Loading