id | title |
---|---|
intro |
Introduction |
bs-dom-testing-library
contains BuckleScript bindings for
dom-testing-library
.
npm install --save-dev bs-dom-testing-library
After installation, you will need to add it to your bsconfig.json
file like
so:
{
"bs-dev-dependencies": ["bs-dom-testing-library"]
}
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
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"]
}