hikerherd icon indicating copy to clipboard operation
hikerherd copied to clipboard

Jest tests are slow to run

Open benhoneywill opened this issue 3 years ago • 1 comments
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

benhoneywill avatar Mar 19 '22 21:03 benhoneywill

Could also do something like this:

https://imhoff.blog/posts/parallelizing-jest-with-github-actions

benhoneywill avatar Apr 28 '22 20:04 benhoneywill