Snapshot tests are so easy it feels like cheating @JoshuaMorony
Snapshot tests are so easy it feels like cheating  @JoshuaMorony
Uploaded September 2024 | Updated November 2026, 1 day ago
My Angular course: 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: youtu.be/_WEKIHL9eyM

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

Want to build mobile apps with Angular?: 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: modernangular.com
- Follow me on Twitter: twitter.com/joshuamorony
Snapshot tests are so easy it feels like cheatingIve been using the new Angular control flow syntax for templates (its good)I turned my trash Angular prototype into a legit app... RMC Devlog #2How to structure your Angular apps like a GooglerCan Angular apps be cool again?WebAssembly in Angular with httpResource and signalsI actually use JavaScript generator functionsChannel Update (Testicular Cancer, Game Demo, and a Brief Hiatus)Using Nx generators to do your work for youAre your Angular components DUMB enough?How Angulars ngNonBindable solved a huge problem in my projectAngular v19 is out!... and it changed my apps (significantly)
Joshua Morony |

Snapshot tests are so easy it feels like cheating

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER