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
Storyshots: Incorrect typings for method "test" #12361
Comments
@nknapp any chance you can submit a fix in a PR? |
- typings in storybook are wrong - storybookjs/storybook#12361
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! |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.20 containing PR #12389 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
Describe the bug
In the file
StoryshotsOptions.ts
the method test is defined asBut in the snapshotsTestTemplate, it is called as
where
...testMethodParams
is defined in src/api/index.ts asTo Reproduce
Steps to reproduce the behavior:
Create
sb init
to get some default stories)Expected behavior
Based on the typings, I would have expected an output that matches the types, but the output is
The actual output is
It seems like the of the
test
-method should be something like:System:
System:
OS: Linux 4.15 Ubuntu 18.04.3 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i7-3687U CPU @ 2.10GHz
Binaries:
Node: 10.18.0 - ~/.nvm/versions/node/v10.18.0/bin/node
npm: 6.14.5 - ~/.nvm/versions/node/v10.18.0/bin/npm
Browsers:
Chrome: 79.0.3945.88
Firefox: 80.0
npmPackages:
@storybook/addon-actions: ^6.0.16 => 6.0.16
@storybook/addon-essentials: ^6.0.16 => 6.0.16
@storybook/addon-links: ^6.0.16 => 6.0.16
@storybook/addon-storyshots: ^6.0.20 => 6.0.20
@storybook/node-logger: ^6.0.16 => 6.0.16
@storybook/preset-create-react-app: ^3.1.4 => 3.1.4
@storybook/react: ^6.0.16 => 6.0.16
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: