Skip to content

Resolve "Migrate spec/frontend/commit/commit_pipeline_status_component_spec.js to Jest"

Illya Klymov requested to merge ce-xanf-commit-pipeline-status-to-jest into master

What does this MR do?

This MR contains porting of existing Karama tests for commit_pipeline_status_component from Karma to Jest

  • fixed bug with component with wrong hook name (destroy --> beforeDestroy)
  • rewritten code to be actual unit test by leveraging proper mocks
  • using snapshots to check render logic

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Closes #67074 (moved)

Edited by Illya Klymov

Merge request reports