Angular component testing - Overcoming the hurdles

preview_player
Показать описание
Your team’s sizable Angular apps are coming along well, but the voice in the back of your head is shouting: we need unit tests. But there are hurdles: you want to test components, but how do you set up the necessary dependency injection and get the HTML template to work in the test?

In this event, you will learn to overcome the hurdles:

Get tests wired up correctly at the start.

See a productivity payoff from well-planned dependency injection in tests.

Simplify and speed up your tests by avoiding the hurdles entirely.

-------------------

Oasis Digital: Your trusted partner for modern software development.

First-time quality, reliable expertise.

We work alongside your team to achieve reusability, create more functionality, and reduce time-to-market.

LINKEDIN:

WEBSITE AND INQUIRIES:

OUR “TECH TALK SHOW” CHANNEL:

ADVANCED TRAINING:

Рекомендации по теме
Комментарии
Автор

Awesome video... It's great to see how the testing code has been simplified over time by keeping exactly what's needed

suchismitagoswami
Автор

Really great stuff, Lance. I hope you release more content like this, truly a hidden gem of a video.

louisadvincula
Автор

This was the best class about test that ive ever seen thanks.

igorpierre
Автор

Thanks, it is very good explanation. I like that you went through all steps: getting rid of errors, simplifying etc

RsnRom
Автор

best angular unit tests video ever! thanks!!

CleeveMorris
Автор

Very optimistic way to write the test cases. Keep rocking man

krishnabhamare
Автор

Thank you Lance! This helped me a lot.

kaankrcakl
Автор

Really great lesson for me, thanks a lot

mrr
Автор

wooww, what an powerful explanation. keep up the good work, amazing content.

peepforlearning
Автор

really good video! loved the tempo and the explaining every step, very insightful. thank you

Balaman
Автор

Finished my basic api/angualr site and now have to test. Literally can't get one test to pass anything....so hoping the video helps

DriveandThrive
Автор

How do you configure Karma or Jasmine to see the html within the Jasmine interface?

edvinbeqari
Автор

Thanks for the insightful talk, but making the tests lightweight comes at the cost of not testing the template section of the component right? Is that the right approach when it comes to unit testing of components in angular?, Just asking because am fairly new to angular and would like to understand the tradeoffs one is making while writing unit tests

vackoo
Автор

hii im getting error
Can't bind to 'ngForOf' since it isn't a known property of 'div'
1. If 'div' is an Angular component and it has the 'ngForOf' input, then verify that it is a part of an @NgModule where this component is declared.

technicalmindsstudios