Skip to content

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

Notifications You must be signed in to change notification settings

qkreltms/writing-test-cases-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
nock(this one for mocking apis), @testing-library/react, jest (default package for CRA)
  1. src/setupTests.js

    • It needs for mocking your axios
  2. App.tsx, redux.ts, App.test.tsx

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published