Testing your React app with mocks

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • Zigi - Delete the most useless function ever: context switching.
  • Sonar - Write Clean JavaScript Code. Always.
  • axios

    Promise based HTTP client for the browser and node.js

    For some of the projects that I’m working on, I use Axios for requests. For our tests, we can use Moxios. Axios provide this library to mock our requests.

  • moxios

    Mock axios requests for testing

    For some of the projects that I’m working on, I use Axios for requests. For our tests, we can use Moxios. Axios provide this library to mock our requests.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

  • jest

    Delightful JavaScript Testing.

    For our tests, we can use Jest, a testing framework for JavaScript. Look at the tests below to see it in action.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts