-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Mocking useLocation
in web/src/components
tests
#5190
Comments
@jtoar this is how we mock the location in Teamstream
|
@KrisCoulson thanks! That seems super obvious now. Let's keep this open as a reminder to add this to the docs. |
A discord link like that, which doesn't actually work is not a very reliable way to indicate a reference 😅 |
I took a shot at adding this to the docs. I'm not sure if there is a better place for it or if anyone would want to expand on this. #6791 |
Edit: seem Kris Coulson's comment: #5190 (comment)
Currently it doesn't seem like it's possible to mock
useLocation
in components that use it. See https://discord.com/channels/679514959968993311/964542735614881862The text was updated successfully, but these errors were encountered: