Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(global-header): added unit tests for searchBar #259

Conversation

ciiay
Copy link
Contributor

@ciiay ciiay commented Jan 8, 2025

Hey, I just made a Pull Request!

This is for RHIDP-5365

  • Broke SearchBar components into smaller components
  • Added unit tests for each component of searchBar

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 8, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-global-header workspaces/global-header/plugins/global-header none v0.0.0

@@ -57,6 +59,7 @@
"@backstage/cli": "^0.29.0",
"@backstage/core-app-api": "^1.15.2",
"@backstage/dev-utils": "^1.1.4",
"@backstage/plugin-search-common": "^1.2.16",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Not needed here because it's already a dependency above.

@ciiay can you please remove this in your next PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christoph-jerolimov I actually added it because it failed on yarn lint as following, removing it will block it from being pushed.

Lint failed in plugins/global-header

✘  https://google.com/#q=%40backstage%2Fno-undeclared-imports

     @backstage/plugin-search-common is declared in devDependencies, but should be moved to dependencies in plugins/global-header/package.json

Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Thanks for this tests and cleanup/refactoring. 👍

@christoph-jerolimov christoph-jerolimov merged commit 8ab416c into redhat-developer:main Jan 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants