Fri, 21 Oct 2022 14:34:57 +0000

Hmm so Vitest + testing-library/react +Gatsby has some strange behavior nIf two tests are in the same suite and you restore mocks between tests, all tests after the first will fail. my theory is that the restoreAllMocks call is removing some method that actually renders the component? Unsure but glad I was able to find a workaround without bashing my head into the desk haha