This repository contains three separate projects. These are 3 individual assignments in testing code:
- Unit-testing with Jest
- Integration-testing with Jest
- E2E-testing with Cypress.
Clone the repo containing three testing projects
git clone https://github.com/Ayngie/assignments-testing.git
Go to the chosen project directory
cd assignment-unittest
cd assignment-integrationtests
cd assignment-e2e-testing
Install dependencies
npm install
Start the server
npm start
Test the code
npm test
or
npm run cypress