Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Most Recent
Most Popular
Highest Rated
Reset
https://s3.amazonaws.com/assets.fullstack.io/n/20220504151043292_C95F39E2-21CB-4F4F-BCD5-28C1DC999E3C.png

lesson

How to Mock MongDB for Angular End-to-End Unit TestsThe newline Guide to Angular Universal

This lesson is going to show you how to mock your data-source - MongoDB - for the E2E tests purpose. Thanks to using mongo-unit you will be able to perform actions that changes data in your DB, during E2E testing.

https://s3.amazonaws.com/assets.fullstack.io/n/20220504151043292_C95F39E2-21CB-4F4F-BCD5-28C1DC999E3C.png

lesson

Build Angular End-to-End Unit Tests With TransferStateThe newline Guide to Angular Universal

In this lesson you will learn how you can verify the TransferState registry content in your E2E tests.

https://s3.amazonaws.com/assets.fullstack.io/n/20220504151043292_C95F39E2-21CB-4F4F-BCD5-28C1DC999E3C.png

lesson

How to Unit Test Server-Side Services in Angular KarmaThe newline Guide to Angular Universal

Last but not least of your unit tests, should be to verify the server-specific services. In this lesson you will learn how to enforce Karma to run tests against code that includes server-specific objects and libraries.

https://s3.amazonaws.com/assets.fullstack.io/n/20220504151043292_C95F39E2-21CB-4F4F-BCD5-28C1DC999E3C.png

lesson

How to Unit Test Slow API Calls in AngularThe newline Guide to Angular Universal

Next step is to simulate a long-running API and verify how server-side Angular deals with it. This lesson will demonstrate you how to do that.