Skip to content

Commit

Permalink
Update MIGRATION.md
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Gomez <[email protected]>
  • Loading branch information
MartinWeb and samuel-gomez-axa committed Oct 4, 2024
1 parent ebe7f08 commit 9c87796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For example, `Modal.HeaderBase` is now `HeaderBase`, `Modal.Body` is now `Body`,

Keep in mind that those components should be wrapped inside a `Modal` component.

Lastly, for your tests to keep working, you wil need to define what the `showModal` and `close` functions do. For that you can use the following code in your `setupTests.ts` file :
Lastly, for your tests to keep working, you will need to define what the `showModal` and `close` functions do. For that you can use the following code in your `setupTests.ts` file :

```javascript
window.HTMLDialogElement.prototype.showModal = vi.fn(function mock(
Expand Down

0 comments on commit 9c87796

Please sign in to comment.