Snapshot tests are so easy it feels like cheating

Channel:
Subscribers:
81,900
Published on ● Video Link: https://www.youtube.com/watch?v=75wXXDEXz70



Duration: 0:00
4,840 views
133


My Angular course: https://angularstart.com/

Snapshot tests in Vitest or Jest are super easy to create, but still offer a powerful way to test your code in certain situations. In this video we take a look at a real example of using Vitest and snapshot testing to test an Angular/AnalogJS package.

Previous video:    • The easiest way to publish an npm pac...  

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Want to build mobile apps with Angular?: https://ionicstart.com

0:00 Introduction
0:47 Context
1:21 Writing a snapshot test
2:07 TDD with snapshot tests
2:54 Testing different scenarios
4:14 More complex tests

#angular #vite #vitest

- More tutorials: https://modernangular.com
- Follow me on Twitter:   / joshuamorony