mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Update docs/writing-tests/interaction-testing.mdx
Co-authored-by: Yann Braga <yannbf@gmail.com>
This commit is contained in:
parent
a84504fef3
commit
ed48d74417
@ -60,7 +60,7 @@ Once the story loads in the UI, it simulates the user's behavior and verifies th
|
||||
|
||||
You can execute code before rendering by using the `mount` function in the `play` method.
|
||||
|
||||
Note that you must always destructure mount from the context. If you do not, an error will be thrown.
|
||||
Note that you must always destructure mount from the play function context. If you do not, an error will be thrown.
|
||||
|
||||
Here's an example of using the [`mockdate`](https://github.com/boblauer/MockDate) package to mock the [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user