Support test splitting for multiple jest projects
Jay Bell
We are using an Nx workspace to manage a monorepo of Angular apps and Nestjs APIs, everything is using jest as the test runner. I want to use the CircleCI test splitting based on timings but it seems that you can only parallelize test tests not jest projects. In the root of our repo we have a jest.config.js that looks like
module.exports = {
projects: []
}
and we can run each of those projects independantly of one another and use Nx to run only the affected tests. I was hoping there was a way we could find a way to integrate that with the CircleCI test split. Maybe just test split an array of jest projects with the ability to pass in jest flags? (we dont need to integrate with nx, just to run jest projects in parallel instead of jest tests)