Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Jest tests are slow to run #32

Open
benhoneywill opened this issue Mar 19, 2022 · 1 comment
Open

Jest tests are slow to run #32

benhoneywill opened this issue Mar 19, 2022 · 1 comment
Labels
maintenance packages, tests, infrastructure etc. needs discovery Need to do some research or experiments to continue nice to have Something nice to have but not essential

Comments

@benhoneywill
Copy link
Owner

benhoneywill commented Mar 19, 2022

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 blitz-js/blitz#2535

@benhoneywill benhoneywill added needs discovery Need to do some research or experiments to continue maintenance packages, tests, infrastructure etc. nice to have Something nice to have but not essential labels Mar 19, 2022
@benhoneywill
Copy link
Owner Author

Could also do something like this:

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintenance packages, tests, infrastructure etc. needs discovery Need to do some research or experiments to continue nice to have Something nice to have but not essential
Projects
None yet
Development

No branches or pull requests

1 participant