Skip to content

Copy over db instead of cleanup during tests

Choose a tag to compare

@kentcdodds kentcdodds released this 01 Oct 16:54

As mentioned in the notes of https://github.com/epicweb-dev/epic-stack/releases/tag/2024-10-01 we can drastically speed up tests by copying over the test database before each test instead of trying to clean it up in between tests. So that's what we've done:

7b16bdc

It goes from ~6ms overhead on each test to ~0.5ms on my macbook.