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
Incorrect typescript typings with addon-jest's withTests
#8058
Comments
@rakeshpai Is this fixed in 5.2? |
@rakeshpai I’ll check on this and fix it if it doesn’t work |
Just tried this with
Thanks for looking into this! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@CodeByAlex We got the same error in "@storybook/addon-jest": "^5.2.3" |
Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.0-alpha.19 containing PR #8410 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Hello @shilman, addon-Info not working in @storybook/addon-info 5.2.3. and i am using react with typescript and following https://github.com/storybookjs/storybook/tree/master/addons/info url for implementing addon. but it is showing an error. Property 'story' is missing in type 'StoryContext' but required in type '{ kind: string; story: string; }' |
Thanks @shilman @CodeByAlex |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.5 containing PR #8410 that references this issue. Upgrade today to try it out! |
addDecorator(withTests({ results }));
leads to a TypeScript error.It looks like the return type of
withTests
is not compatible with the accepted argument type ofaddDecorator
.To Reproduce
In a TypeScript project:
Dependencies
@storybook/react: 5.1.11
@storybook/addon-jest: ^5.1.11
The text was updated successfully, but these errors were encountered: