Open in app

Sign In

Write

Sign In

Fabio Marcoccia
Fabio Marcoccia

9 Followers

Home

About

Jan 31, 2021

redux-toolkit: test slice and actions

How to write a simple test for the store — It’s very important to test an application that uses redux, because it is there that our business logic is implemented. It’s signficant to see how the store changes when an action has been dispatched. For example, we have these actions: export const fetchUser = createAsyncThunk( 'fetchUser'…

Redux

3 min read

redux-toolkit: test slice and actions
redux-toolkit: test slice and actions
Redux

3 min read


Jan 19, 2021

React Redux: test UI and useSelector

How to test a stateless component importing useSelector — Before you start reading, it is recommended that you read the previous article about the test here I started a project with CRA and I added redux-toolkit and redux-mock-store into it. We should have 3 file which represent our slice of store regarding conversion rate.

React

2 min read

React Redux: test UI and useSelector
React Redux: test UI and useSelector
React

2 min read


Jan 10, 2021

React: How to write UI logical test

A simple guide to writing tests for your react UI, using Jest and enzyme — Jest is the most “famous” framework for writing tests for React (and probably the most used) and it is very very simple to configure, it also contains a complete set of APIs to perform a large scale of different tests. Enzyme allows the abstraction of the DOM of a single…

React

3 min read

React: How to write UI logical test
React: How to write UI logical test
React

3 min read

Fabio Marcoccia

Fabio Marcoccia

9 Followers

Lead Frontend developer @Soldo

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech