A concise guide to writing a smoke test suite for Angular applications using TestBed. It covers loading the full AppModule without modification to create near end-to-end integrated tests, including two test cases: verifying the app boots without errors and verifying navigation to a route works correctly. Also touches on handling side effects with fake services or Mock Service Worker, and suggests extending the suite to cover more routes and use cases.
Table of contents
Application smoke test setup Copy link Link copied!Verifying that the application can boot Copy link Link copied!Verifying that navigation works Copy link Link copied!Conclusion Copy link Link copied!Sort: