Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days ago
JSON representation
Repository demonstrates how to test full stack apps based on TypeScript using Cypress library.
- Host: GitHub
- URL: https://github.com/ofadiman/testing-full-stack-apps
- Owner: Ofadiman
- Created: 2024-01-18T23:08:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T19:23:23.000Z (28 days ago)
- Last Synced: 2024-10-20T05:34:28.158Z (26 days ago)
- Topics: code-coverage, component-testing, cypress, e2e-testing, fastify, react, trpc, typescript, unit-testing
- Language: TypeScript
- Homepage:
- Size: 952 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
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.