Techdomain
  • Tutorials(current)
  • Images
  • About
  • Twitter
APIs of React Testing Library

APIs of React Testing Library

We will look into the overview of apis of react testing library - render, cleanup, act

Complete guide to unit testing in React using jest
Render api of react testing library

Render api of react testing library

In this tutorial, we will go through the get, query and find apis of the render method of the react testing library.

Complete guide to unit testing in React using jest
Why should you use react testing library in your next project

Why should you use react testing library in your next project

We will learn why React testing library is better testing library. It comes default in create react app and it is easy to test react component.

React JS Testing
Testing components which use withRouter HOC React

Testing components which use withRouter HOC React

We will learn how to test the component using the MemoryRouter, passing custom pathname to the MemoryRouter and wrapping the component with Router to access change in pathname.

React JS Testing
How to mock the axios library in jest without mock adapter or library

How to mock the axios library in jest without mock adapter or library

We are going to mock the axios library by using the jest.mock function and providing a sample mock factory implementation.

React JS Testing
Unit testing the Axios call using enzyme in a react component

Unit testing the Axios call using enzyme in a react component

We are going to mock the axios library to test the success and error condition of the api in our react class using the enzyme library.

React JS Testing
Unit testing a react component using Axios without any mock adapter library

Unit testing a react component using Axios without any mock adapter library

We are going to mock the axios library without using any mock adapter. We will test the resolved value (success) and the rejected value(error) conditions of the axios call.

React JS Testing
How to use lighthouse in continuous integration system (example travis ci)

How to use lighthouse in continuous integration system (example travis ci)

Learn how to use lighthouse in continuous integration system. We will see an example with travis ci.

Continuous Integration
What is Puppeteer and how is it useful

What is Puppeteer and how is it useful

Learn what is puppeteer and how we can use puppeteer to render the webpages and return the javascript rendered page. This technique is useful for SEO.

Continuous Integration
How to access React instance inside the event handler

How to access React instance inside the event handler

Use bind functions or arrow functions to access react instance inside the event handler

React 16 tutorial
  • Home
  • 1
  • 2
  • 3
  • 4