Skip to content

Vue 3 test are failing due to vue router compatibility

What

Vue 3 tests are failing with Vue router warnings and errors.

Within https://gitlab-org.gitlab.io/frontend/playground/jest-speed-reporter/vue3 at least 257 warnings are currently displayed.

This issue will serve as a starting point for investigation to analyze if a full task group is required for fixing these tests, or if a simpler or shorter solution can be found.

A task group has been created to address the necessary fixes.

Tests to be fixed

  • ee/spec/frontend/insights/insights_router_spec.js
  • ee/spec/frontend/on_demand_scans/components/tabs/base_tab_spec.js
  • spec/frontend/crm/crm_form_spec.js
  • spec/frontend/ml/experiment_tracking/routes/experiments/show/ml_experiments_show_spec.js
  • spec/frontend/organizations/groups_and_projects/components/app_spec.js
  • spec/frontend/projects/your_work/components/app_spec.js
  • ee/spec/frontend/ci/secrets/components/secrets_app_spec.js
  • ee/spec/frontend/ci/secrets/router_spec.js
  • spec/frontend/design_management/router_spec.js
  • spec/frontend/organizations/groups_and_projects/components/app_spec.js
  • spec/frontend/repository/components/header_area/blob_controls_spec.js
  • spec/frontend/repository/components/header_area/blob_overflow_menu_spec.js
  • spec/frontend/repository/router_spec.js
  • spec/frontend/super_sidebar/components/nav_item_router_link_spec.js
  • spec/frontend/vue_shared/components/file_finder/index_spec.js

The above list is not final, it has been extracted with a script from the speed reporter but serves as a starting point for the effort.

To begin work on an item, please create an issue with the file name and relate it to this issue for reference.

To run tests in Vue 3 mode

VUE_VERSION=3 yarn jest

Call to action

As posted by @samdbeckham originally in slack

Screenshare_-_2024-12-12_10_22_51_AM

Edited by Marina Mosti