Update docs/writing-tests/interaction-testing.mdx

Co-authored-by: Yann Braga <yannbf@gmail.com>
This commit is contained in:
Kasper Peulen 2024-07-08 11:31:52 +02:00 committed by GitHub
parent a84504fef3
commit ed48d74417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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).