Jest, also created by Facebook, is arguably one of the most popular JavaScript testing frameworks. If you're familiar with React, you're likely also familiar with Jest. Therefore, we'll skip the formal introduction and get started with using Jest in Reason.
Testing with Jest
Installation
Just like any other package, we start with the Reason Package Index (or Redex, for short).
Typing in jest reveals the bs-jest bindings to Jest. Following the installation instructions for bs-jest, we first install bs-jest with npm:
npm install --save-dev @glennsl/bs-jest
Then we let BuckleScript know about this dev dependency by including it in bsconfig.json. Notice that the key...