Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T02:32:08.000Z (about 3 years ago)
- Last Synced: 2024-03-02T10:34:07.298Z (9 months 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
[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
[![StackShare](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](https://stackshare.io/mrdulin/jest-codelab)
[![Build Status](https://travis-ci.org/mrdulin/jest-codelab.svg?branch=master)](https://travis-ci.org/mrdulin/jest-codelab)
[![Coverage Status](https://coveralls.io/repos/github/mrdulin/jest-codelab/badge.svg?branch=master)](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
```---