Write test for React: component, hoc, hooks, promise, saga, graphql, custom hooks

1. Test with a component

2. Test with connected component and HOC (Higher Order Component)

3. Test with redux-saga

4. Test with promise function

5. Test with react hooks

6. Test graphql queries

7. Test custom hooks

--

--

--

Fun of ReactJS, Javascript, Data visualization www.yuebaixu.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

An Extremely Easy Tip to Improve Web Performance With Async/Await

A Lego figure walking heroicly across a sanded beach.

Spend A Quality Afternoon with React!

Components are Pure Overhead

How to Upgrade Dependencies in Your package.json

Is YAML Ready For JavaScript?

A scene in San Mateo Arboretum Society

Visual Regression Testing

CI/CD with Jenkins pipeline & Nodejs into K8S (Part-2)

Getting started with React Hooks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Albert Yuebai XU

Albert Yuebai XU

Fun of ReactJS, Javascript, Data visualization www.yuebaixu.com

More from Medium

Running Jest + React Testing Library tests in AWS Amplify

Team “Intern-Theory”.

[React] Modal with Backdrop and slide animation effects

Mapping out a solution for my Phase 2 Project