Introduction to Angular Testing — Here’s how to get started
Who else wants to learn how to properly test an Angular application — in half the time?
Say!
Why does testing Angular applications have to be so complicated?
Where do you start when you have to write tests for your Angular application?
What are the first steps?
What should you test?
Not sure how to mock a dependency? Or if you should just inject it directly?
And what Angular testing tools should you use?
What’s Karma anyway?
And how do I use Jasmine?
Or is Mocha better?
Should you test everything? Are unit or integration tests better? What about smock or E2E tests?
Getting started with Angular testing can be overwhelming — it’s hard to know where to focus your limited time to get the best ROI.
And that, my friend, is why I’ve written this article. I’m going to help point you in the right direction and get you started with Angular testing.
This will be a quick but thorough introduction to the basic theory and…