You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to integrate the @storybook/experimental-addon-test plugin, everything worked "fine" but of course I had some quirks. Many on reproducibility between the addon and on the browser but all of them were actual issues on my code. Only one thing is bugging me: tsc.
Typescript now complains that the type of the canvas property of the play function context doesn't have the functions from testing-library anymore. Before, on @storybook/addon-interactions I had all those testing library functions under canvas and I didn't need to use within(canvasElement).findBy...()
Error:
error TS2339: Property 'getByTestId' does not exist on type 'Canvas'
Describe the bug
When trying to integrate the
@storybook/experimental-addon-test
plugin, everything worked "fine" but of course I had some quirks. Many on reproducibility between the addon and on the browser but all of them were actual issues on my code. Only one thing is bugging me:tsc
.Typescript now complains that the type of the
canvas
property of the play function context doesn't have the functions from testing-library anymore. Before, on@storybook/addon-interactions
I had all those testing library functions undercanvas
and I didn't need to usewithin(canvasElement).findBy...()
Error:
Reproduction link
http://example.com
Reproduction steps
Very hard to reproduce as this is coming as a regression on my storybook. Those are my addons:
System
Additional context
No response
The text was updated successfully, but these errors were encountered: