Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.81 KB

File metadata and controls

32 lines (21 loc) · 1.81 KB

Testing with Angular CDK Harness

Author: Thomas Laforge

Statement:

The objective of this challenge is to have a better understanding of the CDK test harness API. In this initial challenge, we will only use Angular Material's built-in harnesses.

The goal is to test the functionality of child.component.ts. I have prepared a test suite that you need to implement, but feel free to include additional tests as well.

Note: You are welcome to use Testing Library if you wish.

Documentation for CDK Component Harness is here Documentation for Angular Material component is here

Submitting your work

  1. Fork the project
  2. clone it
  3. npm ci
  4. npx nx serve testing-harness to play with the application
  5. npx nx test testing-harness to test your application with Testing Library
  6. ...work on it
  7. Commit your work
  8. Submit a PR with a title beginning with Answer:23 that I will review and other dev can review.

harness testing harness testing solution author

You can ask any question on twitter