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

test: add search box tests #17

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

adriansberg
Copy link
Contributor

No description provided.

@@ -1,3 +1,4 @@
import { vi } from 'vitest';
import '@testing-library/jest-dom/vitest';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to add this to be able to use toBeInDocument()/toHaveFocus() etc. Not quite sure if this is the correct place though.

Copy link
Collaborator

@mikaelbr mikaelbr left a comment

Choose a reason for hiding this comment

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

Fantastic!

@adriansberg adriansberg merged commit a444a4b into adriansberg/search Sep 27, 2023
3 checks passed
@adriansberg adriansberg deleted the adriansberg/search-tests branch September 27, 2023 20:49
adriansberg added a commit that referenced this pull request Oct 2, 2023
adriansberg added a commit that referenced this pull request Oct 2, 2023
* feat: add initial version of search bar

* fix: move key prop

* feat: add icons

* fix: fix compiling issue with feature category

* feat: debounce query search

* refactor: add hook for debouncing

* fix: use proper id for features

* fix: update schema with optionals

* refactor: refactor search highlighting

* test: add search box tests (#17)

* feat: add geolocation (#19)

* feat: add geolocation

* test: clean up geolocation mock

* fix: conditionally call autocomplete api

* fix: clean up reverse handler

* fix: clean up function call

* fix: remove todo

* fix: fix exports from translations
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