Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Snapshot Integration for Jasmine + Karma Test Framework (Angular Project)

I have been researching a lot about using Jasmine and Karma for testing an Angular project. I am currently looking at the possibility of integrating a snapshot library for the said test framework. However, I have so far only found this library, last updated 5 years ago: https://www.npmjs.com/package/jasmine-angular-snapshot-testing

Is there any other way or library that can be integrated for Jasmine and Karma for snapshot testing? A lot of people use Jest instead, but if Jasmine and Karma had to be used, is there a way? Thank you!

like image 394
Andrea G. Avatar asked Jun 25 '26 15:06

Andrea G.


1 Answers

Have a look at snap-shot-it, which works with Karma and Jasmine. You can also configure your platform to run Jest, which will give you the native snapshot test function.

like image 53
Flavian Hautbois Avatar answered Jun 28 '26 14:06

Flavian Hautbois



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!