Fewer unit tests more logs

This is the 4th part of the series “Building an online marketplace from scratch”. A collection of articles on how to design and deliver modern business applications quickly. In this post, we’ll…

Smartphone




How to Set up a Test Environment in React

Written by: Natasha Osborne

At Radial Development Group, we often choose React for front end views (typically in conjunction with Redux). Since we practice test-driven development, we also set up a test environment.

Here’s an outline of the tools we use and why. Later, we’ll follow up with some in-depth posts on how we use these tools.

When setting up your test environment, you will need at least three things, likely four:

An assertion library allows the test to expect a certain result in a test. We use Chai.

Webpack is a module bundler (any static asset) that is used to bundle and serve the app’s files.

We’ll be updating this post and adding others with more in-depth guides to each of these tools. Stay tuned!

Add a comment

Related posts:

Two Tales of Sexual Abuse

Two relatives and I were unjustly accused of molesting three girls when we were in our late teens. We were accused and confronted in front of some other relatives. I was sexually molested by a woman… Read more

The SpankChain Auction is Now Complete

The SpankChain global token sale event is now complete! We were overwhelmed by the show of support and interest from the community and are happy to announce that we have now distributed 300,043,386… Read more