-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: @storybook/test
exports any
types for userEvent
#25258
Comments
@kasperpeulen I am pretty sure you would have avoided |
@storybook/test
exports any
types for userEvent
@storybook/test
v8 exports any
types for userEvent
I updated my description and title to point out that this is an issue for v8. |
@skratchdot Hey-O so v7.6.x is the current version I've been using and it has the same type issues. Feel free to refer to my comment to update the title and description. |
@storybook/test
v8 exports any
types for userEvent
@storybook/test
exports any
types for userEvent
Can be related to this: testing-library/user-event#978.
That error is fixed by the version |
Ok I managed to fix it with this change:
|
@jalooc - thanks! i used the following
the my
|
I am still seeing errors even with |
storybook 버전 업데이트에 따라 해결된 타입 에러 부분 fixme 제거 related to storybookjs/storybook#25258
Respectfully @kasperpeulen NS 😕 why this is closed? Have I missed something?
"@storybook/addon-essentials": "^7.6.16",
"@storybook/addon-interactions": "^7.6.16",
"@storybook/addon-links": "^7.6.16",
"@storybook/blocks": "^7.6.16",
"@storybook/react": "^7.6.16",
"@storybook/react-vite": "^7.6.16",
"@storybook/test": "^7.6.16", |
I just merged a PR that should fix this: Shall be part of beta.3. |
Describe the bug
In v8, all the types for
userEvent
from@storybook/test
are typed asany
instead of keeping/wrapping the@testing-library/user-event
types during instrumentation.@storybook/test
:@testing-library/user-event
:To Reproduce
on a codebase that implements the
@typescript-eslint/no-unsafe-call
lint rule, upgrade from@storybook/jest
and@storybook/testing-library
to use@storybook/test
instead. notice all the new eslint errors:due to
userEvent
System
Additional context
No response
The text was updated successfully, but these errors were encountered: