Learn How to Unit Test Angular's 17 Defer Block

preview_player
Показать описание
In this video, we'll be learning how to unit test the defer block in #Angular. This block is used to create chunks and lazy load them until a given condition is met.

Chapters:
00:00 Intro
00:28 Construct the unit tests
02:33 when isVisible
08:03 On Idle
11:47 On Viewport
13:35 On Timer
14:57 On Interaction
17:06 On Hover
18:14 On Immediate
19:47 Nested Defer Blocks
22:37 Thank you

******************************************************
Let's connect
******************************************************

#angular #learnAngular #angularTutorial #angular17 #webdevelopment #softwareengineer #unittesting #unittests
Рекомендации по теме
Комментарии
Автор

It's a great change since in most cases, as you will see in this video, the Playthrough is the winning option.

CodeShotsWithProfanis
Автор

Nice, and do you perhaps in idea how we can mock components inside @defer blocks?
When I talk about mocking components, I don't want to mock child component deps as well. I hoped ng-mocks helps me but not really

balintcsaszar
Автор

Are you using the new @web/test-runner?

paulh