Skip to content

Files

Latest commit

583b7d6 · Feb 11, 2019

History

History
59 lines (41 loc) · 1.04 KB

File metadata and controls

59 lines (41 loc) · 1.04 KB
id title
intro
Introduction

bs-dom-testing-library contains BuckleScript bindings for dom-testing-library.

npm install --save-dev bs-dom-testing-library

Setup

After installation, you will need to add it to your bsconfig.json file like so:

{
  "bs-dev-dependencies": ["bs-dom-testing-library"]
}

Other Dependencies

bs-platform

This is what BuckleScript uses to compile the Reason code to JS. If it is not in your project you can install it like so:

npm install --save-dev bs-platform

bs-jest

This is the recommended test runner and is a wrapper around Jest. All of the examples here will be using it.

npm install --save-dev @glennsl/bs-jest

Then update bsconfig.json:

{
  "bs-dev-dependencies": ["@glennsl/bs-jest"]
}