React testing library using beforeAll to render cannot find item on 2nd test
Solution 1:
I think this is an answer you need: https://github.com/testing-library/react-testing-library/issues/541#issuecomment-562601514
According to this comment all you need to do is changing import:
@testing-library/react
to @testing-library/react/pure
to skip a cleanup after each test.