Benefits of Jest Over Karma

Angular: The Full Gamut Edition

Charlie Greenman
April 28, 2021
1 min read
razroo image

Pros

  1. Faster

  2. Snapshots

  3. Mocking

  4. Well-Maintained

  5. Dev-Ergonomics

  6. Same framework for node backend and frontend

  7. Same framework for Angular and React

Cons

  1. No browser-specific bugs can be discovered with it

  2. Unfamiliar Debugging

One of the reasons for not using Jest, might be because you want to use Karma tests. However, in some situations, the way that the tests are written, is that it would make it very difficult to run them in parallel. In addition, it might be difficult to convert tests from karma over to Jest. For 3000 tests, it might take a couple of days to move it over to jests.

Plan of action, we might have the option to only write jests tests, and then move over to karma, after writing for a month, and being used for the tests.

    Subscribe to the Razroo Angular Newsletter!

    Razroo takes pride in it's Angular newsletter, and we really pour heart and soul into it. Pass along your e-mail to recieve it in the mail. Our commitment, is to keep you up to date with the latest in Angular, so you don't have to.

    More articles similar to this

    footer

    Razroo is committed towards contributing to open source. Take the pledge towards open source by tweeting, #itaketherazroopledge to @_Razroo on twitter. One of our associates will get back to you and set you up with an open source project to work on.