https://github.com/bennycode/workshop-jest
https://github.com/bennycode/workshop-jest
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bennycode/workshop-jest
- Owner: bennycode
- Created: 2022-01-26T16:29:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T08:37:32.000Z (almost 3 years ago)
- Last Synced: 2025-03-22T19:47:30.106Z (about 1 year ago)
- Language: TypeScript
- Size: 681 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing Workshop
- [React Core Concepts](https://reactjs.org/docs/hello-world.html)
## Jest
- https://testing-library.com/docs/queries/about
### Run specific tests
**Run test by file path:**
```bash
react-scripts test --colors --verbose --runTestsByPath ./src/yaml/sortYaml.test.ts
```
**Run test by test name:**
```bash
react-scripts test --testNamePattern=updateCount
react-scripts test --colors --verbose "--testNamePattern=^sortYaml sorts YAML content by key$"
```
## Playwright
- https://playwright.dev/docs/test-advanced