Skip to content

Fix vue 3 jest spec failure for severity_badge.vue

Lorenz van Herwaarden requested to merge fix-vue-3-jest-severity-badge into master

What does this MR do and why?

Related &11741

Related &14952 (closed)

This fixes issues with the tooltip directive when running the spec with Vue 3.

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

Screenshot_2024-08-21_at_16.56.21

Tooltip still works after small change in severity_badge.vue.

How to set up and validate locally

  1. Run VUE_VERSION=3 yarn jest ee/spec/frontend/vue_shared/security_reports/components/severity_badge_spec.js --watch 
  2. Checkout branch
  3. Run VUE_VERSION=3 yarn jest ee/spec/frontend/vue_shared/security_reports/components/severity_badge_spec.js --watch 
Edited by Lorenz van Herwaarden

Merge request reports

Loading