Skip to content

Fix vue 3 jest spec failure for ide_sidebar_nav

What does this MR do and why?

Related &14952 (closed)

This fixes issues with the tooltip directive when running the spec with Vue 3. In addition, in Vue 3 mode, the order of class and :class on a component seems to be respected, while it's not for Vue 2. Therefore, the class prop was moved before :class so it's in line with the spec check.

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

How to set up and validate locally

  1. Run VUE_VERSION=3 yarn jest spec/frontend/ide/components/ide_sidebar_nav_spec.js --watch 
  2. Checkout branch
  3. Run VUE_VERSION=3 yarn jest spec/frontend/ide/components/ide_sidebar_nav_spec.js --watch 
  4. Run VUE_VERSION=2 yarn jest spec/frontend/ide/components/ide_sidebar_nav_spec.js --watch 
Edited by Lorenz van Herwaarden

Merge request reports

Loading