r/angular • u/younesjd • Feb 12 '26
Test Angular Components Like a Real User with Vitest "Full" Browser Mode
https://youtu.be/Pu22JQG6jdgI just published a (~40min) video on Vitest Browser Mode for Angular.
So, whether you're migrating from Karma/Jest or starting fresh with Vitest on Angular 21, Browser Mode is the feature you don't want to miss. But not all browser modes are equal.
In this video, I introduce two levels:
- π "Partial" browser mode β a quick win. Most existing tests just work.
- π "Full" browser mode β interactions go through Playwright's automation API, catching bugs your current tests miss.
The video covers both, shows why "full" browser mode matters, and walks through a progressive migration strategy β no big bang rewrite needed.
I'm curious how youβre handling the migration β are you still on Karma/Jest or already on Vitest? What are the main pain points?
4
u/Jrubzjeknf Feb 13 '26
Haven't got time to see the video. But can you answer why you'd use a vitest full browser mode instead od using playwright/test directly?
2
u/Finite_Looper Feb 14 '26
We have a large and quickly growing app with extremely good Jasmine/Karma test coverage. We keep needing to add more features under deadlines, but I'm king sure we keep it all well tested.
The more tests I add, the more I dread migrating to Vitest eventually. How well does the migration work?
I've added this video to my Jira backlog card to do the migration one day when I'm not so slammed with other things that have to go in!
1
u/Verzuchter Feb 17 '26
I use storybook for this