[Bug] mount()
in play()
fails with SB_PREVIEW_API_0012 (MountMustBeDestructuredError): Incorrect use of mount in the play function.
#270
Labels
bug
Something isn't working
Describe the bug
When using the
mount
-construct in aplay
-function as described in the docs:https://storybook.js.org/docs/writing-tests/component-testing#run-code-before-the-component-gets-rendered
The Component Tests panel fails with the following message:
Steps to reproduce the behavior
examples
dir in this repo:Additional Context
The detection mechanism that is currently failing is here: https://github.com/storybookjs/storybook/blob/next/code%2Fcore%2Fsrc%2Fpreview-api%2Fmodules%2Fpreview-web%2Frender%2Fmount-utils.ts
The text was updated successfully, but these errors were encountered: