Fix some Jest specs asserting against an empty wrapper
What does this MR do and why?
This MR Fixes all failing tests
Testing against empty string would pass in VUE 2
But VUE 3 renders empty components differently and all tests fail in VUE 3 mode
This MR adds plugins for vue-test-utils
to fix failing tests
List of failing tests
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Run
VUE_VERSION=3 yarn jest --watch
- Checkout branch
- Run
VUE_VERSION=3 yarn jest --watch
Related to #478265 (closed)