Skip to content

Picogeek06/ng-unit-testing

Repository files navigation

NgUnitTesting

This project was generated with Angular CLI version 14.1.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

This project is configured with Jest Unit Testing and will be used for practicing the same going forward. Run npx jest to execute the unit tests via Jest.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Jest Setup Documentation Link:

https://www.amadousall.com/how-to-set-up-angular-unit-testing-with-jest/

Route Structure:

  1. "/" -> Counter Component with Header
  2. "/users" -> Takes the user to the users/register page where we have a form with some user inputs for which standard validations are in place.
  3. "/users/list" -> show render a list of users previously added to the local database (using a local server by using the mockServer package).

Contents:

  1. Unit Testing In Angular Using JEST, integrated in the "Counter" Component.
  2. Assignment - 1 - Done
  3. Assignment - 2 - Done
  4. Assignment - 3 - Done
  5. Assignment - 4 - Partially Completed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published