Angular is one of the main frameworks for building web applications. While not completely “unit testing”, testing web components in isolation has the benefits of quick feedback and confidence in quality. In this packed 1-day intro, we’ll learn how to test Angular components.
We’ll see how to write, run, and debug component tests. We’ll go over elements and expectations and talk about the async and dynamic aspects of the operations.
On top of that, we’ll discuss where component tests fit into testing work – How they fit within web and unit tests, and when they can be replaced with simpler tests. We’ll also see how to run the tests in CI environment.
Workshop total length: 1 day
Remote and on-site options.
The workshop is intended for front-end, full-stack developers and team leaders.
Following the workshop, attendees will be able to:
- Describe the benefits and challenges of component testing
- Plan and design the component tests.
- Design Angular component code to be testable and easy to change.
- Write and debug components using the Angular Testing Library / Test Bed.
- Mock external calls
- Run the tests in Continuous Integration systems
- The place of DOM component tests in testing
- Testing Angular components
- Testability and Single Component Angular Modules (SCAMs)
- Querying elements
- Using the Jest-DOM assertions
- Using User-Event library to invoke events
- Testing event invocation
- Debugging tests
- Mocking external API calls at function levels
- Handling async code scenarios
- Running in Continuous integration system
- Basic understanding of test automation and test frameworks
- Angular development knowledge
- Attendees need a laptop with an IDE with toolset (e.g. VS Code, node, npm).
For more questions:Contact Us!