Loading
Inline createMountOptions in project_token_spec
What does this MR do and why?
Simplifies the project token spec by moving a setup helper into the one place that uses it. Follow-up from a non-blocking review comment on !259052 (merged). This only touches specs, with no production or UI changes.
Changes
- Moved the
createMountOptionshelper intocreateComponentand removed it - Dropped the
stubsoption, which nothing ever passed in
How to set up and validate locally
No UI to check. This only changes a spec, and CI runs it. To run it locally:
-
Run the spec under Vue 2 and Vue 3. Both pass:
yarn jest ee/spec/frontend/dependencies/components/filtered_search/tokens/project_token_spec.js VUE_VERSION=3 yarn jest ee/spec/frontend/dependencies/components/filtered_search/tokens/project_token_spec.js -
Run ESLint on the spec. It reports no errors:
yarn eslint ee/spec/frontend/dependencies/components/filtered_search/tokens/project_token_spec.js
Closes #633034 (closed)
Edited by Samantha Ming