Apologies if the question sounds incomplete. I have learnt NgRx recently and realized that snapshot testing would make life easier compared to asserting in case of NgRx. However, i don't want to migrate from Karma to Jest (don't want to change the entire flow of the project for this one part). What is the best way to test NgRx using Karma, the way snapshot testing is done?. I saw a few packages in the npm, but is there anything first hand from karma?, Any suggestions are welcome.
Asked
Active
Viewed 1,056 times
1 Answers
1
https://www.npmjs.com/package/karma-snapshot Seems to be your best option. I haven't used it personally, but it seems to do what you want.

RocketMan
- 441
- 4
- 15
-
Has anyone already tried this library? I am trying without success. And I can't find a better alternative. – Darwin97VA Aug 11 '22 at 15:38