I have test code like this:
test("Test", () => {
render(<App />);
})
However, I’m getting the following error:
Warning: An update to SettingsDialog inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
What should I do to eliminate these warnings?