diff --git a/README.md b/README.md index 0be0fd4..4524397 100644 --- a/README.md +++ b/README.md @@ -422,7 +422,7 @@ import { render, act, screen } from '@testing-library/react'; import { MyNiceModal } from '../MyNiceModal'; test('My nice modal works!', () => { - render( + render(); act(() => { NiceModal.show(MyNiceModal);