act(() =>
render(
<Router history={history}>
<Route path="/v/:id">
<SingleVideo/>
</Route>
</Router>
)
)
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */