Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```

---

Flag Counter