I've found plenty of documentation online for how to run Jest on CircleCI with test splitting, but none of them have solved two problems that I've run into, with a relatively basic (albeit large) React + Next.js project. And I bet others have these problems, too. Namely:
- Jest on CircleCI won't run tests with
[
or]
in the filename. (That's a particular problem when using NextJS.) - CircleCI won't split by timings when using Jest with
jest-junit
I've found solutions for both of these problems, but it wasn't easy. I can't be the first person to encounter these problems, right?