Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ofadiman/testing-full-stack-apps

Repository demonstrates how to test full stack apps based on TypeScript using Cypress library.
https://github.com/ofadiman/testing-full-stack-apps

code-coverage component-testing cypress e2e-testing fastify react trpc typescript unit-testing

Last synced: about 1 month ago
JSON representation

Repository demonstrates how to test full stack apps based on TypeScript using Cypress library.

Awesome Lists containing this project

README

        

# Cypressing React

Cypressing React is a project that demonstrates the possibilities offered by the [cypress](https://www.cypress.io/) library for testing applications.

## Test cases in the project

- E2E tests for the login page.
- E2E tests for 404 page.
- E2E tests for posts page.
- Component tests for `` component.
- Unit tests for `add` function.

## Code coverage

The code in the project has 100% test coverage.

The following commands are available to run tests:

- `test:clean` - Remove code coverage artifacts from previous cypress runs.
- `test:cypress:e2e:ci` - Run E2E tests and generate code coverage report for them.
- `test:cypress:component:ci` - Run component tests and generate code coverage report for them.
- `test:cypress:ci` - Remove code coverage artifacts from previous cypress runs, run E2E and component tests and generate code coverage report for them.
- `test:report` - Open code coverage report in browser.