# taro-testing-library
Simple and complete taro.js testing utilities that encourage good testing practices.

[![Actions Status](https://github.com/ThoughtWorksChina/taro-testing-library/workflows/Node%20CI/badge.svg)](https://github.com/ThoughtWorksChina/taro-testing-library/actions)
[![NPM](https://img.shields.io/npm/v/taro-testing-library.svg)](https://www.npmjs.com/package/taro-testing-library)
[![license](https://badgen.net/badge/license/MIT/blue)](https://github.com/ThoughtWorksChina/taro-testing-library/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/ThoughtWorksChina/taro-testing-library/branch/master/graph/badge.svg)](https://codecov.io/gh/ThoughtWorksChina/taro-testing-library)


## Install
```bash
// use yarn
yarn add taro-testing-library -D
// use npm
npm install taro-testing-library -D
```


## Usage
set `preset` in your jest config file
```json
{
  "preset": "taro-testing-library"
}
```