Challenge Overview
Challenge Objectives
-
Provide unit tests for an Angular 9 based web app.
Project Background
-
We have built a fax management solution using Angular 9 and the purpose of this challenge is to write unit tests for it.
Technology Stack
-
Angular 9
-
Angular Flex Framework / Layout
-
Material UI
-
HTML5
-
Javascript
-
CSS
-
Node.js
-
REST
Existing Code
The prototype is integrated with a mock API already but since it’s a mock it’s very easy to run both locally. You should not break any of the integration and should only provide unit tests in this challenge.
You should not modify existing code either besides adding the unit tests.
Challenge Requirements
-
We need to unit test the frontend and the http calls in this challenge, with a coverage of over 90%, you can take a look at https://angular.io/guide/testing for more details on testing both. This is considered a major requirement in the scorecard since unit testing is all this challenge is about.
-
End-to-end testing is NOT in scope.
-
Your submission must add a script (or command) to run the tests and generate a coverage report.
-
No existing code should be modified and no existing features should be broken.
-
There should be no linting errors or warnings with the unit tests code
-
Production build of the prototype must not be broken
Browser Requirements
Windows: IE 11+, Edge (chromium based version), Chrome (latest)
Mac: Chrome (latest)
Final Submission Guidelines
-
Full source code
-
Updated / new build scripts to run the tests and generate coverage report
-
Updated readme to reflect the changes done in this challenge (example: new details on how to run your tests and where to check the coverage report, how to run linting on the test code, etc.)