🤖 Let AI test your apps automatically with TestSprite. Try for FREE - https://bit.ly/decoded-testsprite
🚀 ABOUT THIS VIDEO
Angular 21 opens a new and huge chapter for Angular testing because blazing-fast and powerful Vitest becomes the default testing framework and finally replaces Jasmine and deprecated Karma.
In this video, I will guide you through:
✅ Enabling Vitest for your currently existing Angular application.
✅ How to configure Vitest in different ways, including the usage of the vitest.config.ts file.
✅ How to run unit tests in browser mode
✅ How to avoid other common pitfalls when you migrate from Jasmine and Karma.
So let's get started right away and jump straight to the point.
🚀 Beginner with Unit Testing in Angular? Check out the entire course:
https://bit.ly/conscious-angular-test...
🌱🤝 BECOME A CHANNEL MEMBER
Unlock exclusive content and support the channel by becoming a member:
Patreon - / decodedfrontend
YouTube Membership - / @decodedfrontend
🔗 RESOURCES
Official Docs: https://angular.dev/guide/testing/mig...
Tutorial Code on GitHub: https://github.com/DMezhenskyi/angula...
Discord Angular Community (FREE): https://bit.ly/decoded-frontend-discord
💡 For more Angular tips, follow also:
LinkedIn - / dmezhenskyi
Twitter - / decodedfrontend
Instagram - / decodedfrontend
⏱️ TIMESTAMPS
00:0:00 Intro
00:0:53 Demo App Overview
00:1:27 Migration from Karma
00:4:58 Migration from Jasmine
00:9:50 How to use vitest.config.ts
00:10:31 Using the vitest.config.ts for advanced configurations
00:11:57 Running tests in Browser
00:13:54 Sponsorship Integration
00:15:25 Outro
#angular #ng #angulartutorial #angulardevelopment #environmentinitializer #appinitializer #angularservices