Kinto / kinto-admin

Kinto Web Administration Console
http://kinto.github.io/kinto-admin/
183 stars 35 forks source link

Fix RTL errors about wrapping react state updates in `act` #3239

Closed grahamalama closed 1 month ago

grahamalama commented 1 month ago

When I ran the test suite on master, I noticed this output for some tests:

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

this PR fixes the tests that were emitting those messages.