(outside of a React project)
(outside of a React project)
Its also, as of late, really shown some innovation around testing, I think Jest 28 is a huge step in the right direction.
The only other fully fledged alternative I can think of is Jasmine (which, iirc Jest is actually a fork of?) but Jasmine isn't as well maintained and has no transform infrastructure.
Basically, unless you're just really happy with mocha, I think Jest gives you more flexibility, especially as projects / products grow overtime.
Jest is also better in monorepos IMO.
I can't remember the specifics, but I think it was a mix of having nice reporting built in, easy to spy on or mock our ESModules, and there are a lot of other developers using it, so it was easy to find solutions.
It mostly "just worked" and didn't require adding other libraries to handle mocks and spies.