https://github.com/mrdulin/jest-codelab
Learning JavaScript Test Framework - Jestjs v24.x.x by examples
https://github.com/mrdulin/jest-codelab
enzyme-testing jest jest-codelab jest-mocking jest-snapshots jest-test jest-tests mock react-test-renderer react-testing react-unit-testing reactjs redux-mock-store redux-testing snapshot-testing stackoverflow stub supertest unit-testing unit-testing-framework
Last synced: about 1 month ago
JSON representation
Learning JavaScript Test Framework - Jestjs v24.x.x by examples
- Host: GitHub
- URL: https://github.com/mrdulin/jest-codelab
- Owner: mrdulin
- License: mit
- Created: 2018-10-08T02:18:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T02:32:08.000Z (over 3 years ago)
- Last Synced: 2024-03-02T10:34:07.298Z (over 1 year ago)
- Topics: enzyme-testing, jest, jest-codelab, jest-mocking, jest-snapshots, jest-test, jest-tests, mock, react-test-renderer, react-testing, react-unit-testing, reactjs, redux-mock-store, redux-testing, snapshot-testing, stackoverflow, stub, supertest, unit-testing, unit-testing-framework
- Language: TypeScript
- Homepage:
- Size: 3.45 MB
- Stars: 109
- Watchers: 3
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-codelab
[](https://github.com/facebook/jest)
[](https://stackshare.io/mrdulin/jest-codelab)
[](https://travis-ci.org/mrdulin/jest-codelab)
[](https://coveralls.io/github/mrdulin/jest-codelab?branch=master)Learning JavaScript Unit Test Framework - Jestjs by examples
## Test
Run test for single file:
```bash
npm t -- /Users/ldu020/workspace/github.com/mrdulin/jest-codelab/src/stackoverflow/58820204/index.spec.jsx
```Run test for single file with coverage report:
```bash
npm t -- --coverage /Users/ldu020/workspace/github.com/mrdulin/jest-codelab/src/stackoverflow/58820204/index.spec.jsx
```Run test for all files:
```bash
npm test
```---