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

https://github.com/qkreltms/writing-test-cases-practice

You can learn technique of writing test cases by reading this repository when you use redux, axios and react-hooks in create-react-app
https://github.com/qkreltms/writing-test-cases-practice

axios create-react-app jest nock react-hooks redux testing

Last synced: about 1 month ago
JSON representation

You can learn technique of writing test cases by reading this repository when you use redux, axios and react-hooks in create-react-app

Awesome Lists containing this project

README

        

## Introduction

You can learn technique of writing test cases by reading this repository when you use `redux`, `axios` and `react-hooks` in `create-react-app`

## Get started

`yarn test:w` or `npm run test:w`

## Check out these files

1. package.json `jest` property and installed packages

```sh
nock(this one for mocking apis), @testing-library/react, jest (default package for CRA)
```

2. `src/setupTests.js`

- It needs for mocking your axios

3. `App.tsx, redux.ts, App.test.tsx`