Skip to content

Commit

Permalink
Update code/core/src/preview-errors.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Shilman <[email protected]>
  • Loading branch information
kasperpeulen and shilman authored Jul 6, 2024
1 parent b0a9b90 commit 504e7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/core/src/preview-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class MountMustBeDestructuredError extends StorybookError {
? ''
: dedent`
It seems that your builder is configured to transpile destructuring.
To use the mount prop of the story context, you need to configure your builder to transpile not further than ES2017.
To use the mount prop of the story context, you must configure your builder to transpile to no earlier than ES2017.
`
}
More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-each-test
Expand Down

0 comments on commit 504e7c7

Please sign in to comment.