jest

Partial Matching in Jest

Jest has the ability to check for partial matches on arrays and objects. Let us see how to do partial…

6 months ago

How to unit-test a private (non-exported) function in JavaScript

When writing unit-tests for JavaScript modules, we often encounter a dilemma wherein the module has some private functions that have…

3 years ago

How to setup Jest in a TypeScript, Babel and Webpack project

As you might know, I have been diving into setting up a boilerplate for a TypeScript project with React. And…

5 years ago
Advertisements