-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Testing type error #706
Comments
Thanks for the report. What version of Vitest are you using? |
2.1.3 |
Thanks, I managed to reproduce it here: https://github.com/franky47/nuqs-repro-706 I'll have a look, I see that I'm using Vitest 1 in the nuqs repository, it could be a breaking change on their part. |
Ok so the generic types for So for Vitest 2 you should change the const onUrlUpdate = vi.fn<(event: UrlUpdateEvent) => void>() |
That solves it. Tk |
🎉 This issue has been resolved in version 2.1.0 🎉 The release is available on: |
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
I'm following the testing example https://nuqs.47ng.com/docs/testing and typescript throws the following errors.
Reproduction
Follow the testing example
If needed use this tsconfig
tsconfig.json
tsconfig.node.json
The text was updated successfully, but these errors were encountered: