#Unit Testing
11 messages · Page 1 of 1 (latest)
Hi, if you are running on the Angular CLI stick to Jasmine/Karma. If you have Nx, it will be Jest. If you want to try out new stuff, you can use Analog which provides Vitest.
I do believe its important to understand karma is deprecated: https://github.com/karma-runner/karma#karma-is-deprecated-and-is-not-accepting-new-features-or-general-bug-fixes and it's worth exploring alternatives.
For those outside Angular looking to migrate off Karma, both Web Test Runner and jasmine-browser-runner provide browser-based unit testing solutions which can be used as a direct alternative. Jest and Vitest also provide Node-based alternatives.
Critical security issues in Karma will still be triaged and fixed as necessary. This will continue until 12 months after Angular CLI's Web Test Runner support is marked stable.
@sand reef is this better than cypress if you have an opinion?
Cypress is only to E2E Testing
Currently to Unit Test , jest is the more use and stanrd nowdays
Thank you. Using jest is ok for the angular 15?
Yes Its good option , I recommend you use a jest angular preset or preconfigured with Nx in monorepository