hikerherd
hikerherd copied to clipboard
Jest tests are slow to run
trafficstars
The jest tests are slow to run because they all access the database, so have to be run one after the other.
If we could figure out a nice way (maybe using postgresql schemas) to give each test its own database they could be run in parallel which should drastically speed up the CI job for the tests.
Relevant discussion https://github.com/blitz-js/blitz/discussions/2535
Could also do something like this:
https://imhoff.blog/posts/parallelizing-jest-with-github-actions