Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonngdev/cypress-starter
Basic starting template for Cypress, with TypeScript and Cypress Testing Library.
https://github.com/sonngdev/cypress-starter
Last synced: about 5 hours ago
JSON representation
Basic starting template for Cypress, with TypeScript and Cypress Testing Library.
- Host: GitHub
- URL: https://github.com/sonngdev/cypress-starter
- Owner: sonngdev
- Created: 2022-05-26T06:58:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T12:14:14.000Z (over 2 years ago)
- Last Synced: 2024-10-09T17:08:45.805Z (about 1 month ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress Starter Template
This is a template to quickly get you started on E2E testing with [Cypress](https://www.cypress.io/). It comes with [TypeScript](https://www.typescriptlang.org/) out of the box, and includes [Cypress Testing Library](https://testing-library.com/docs/cypress-testing-library/intro/) that help you write good-practice queries. All typing are pre-configured for you, so you get great code-suggestion support from modern IDEs (like Visual Studio Code).
## Features
- ⭐️ Cypress 10
- ⭐️ TypeScript 4.7.3
- ⭐️ Cypress Testing Library 8.0.3## Installation
Clone this repo
```bash
git clone [email protected]:thanhsonng/cypress-starter.git
```Install dependencies
```bash
npm i
```Run Cypress
```bash
npm run test:e2e
```🎉 Done. You can now start writing your first test suite.
⚠️ **Note**: By default, it uses Chrome as the default browser, and it directly shows all the tests in E2E mode. If you want other options, use Cypress UI by adding this script to `package.json` then run it.
```json
"test:open": "cypress open"
``````bash
npm run test:open
```