bs-tape
v0.3.0
Published
BuckleScript bindings for tape
Downloads
4
Maintainers
Readme
bs-tape
BuckleScript bindings for tape.
There were already bindings for jest, but I find Jest to be pretty annoying to use, and a bit "too magical". So, I made this one.
Please be warned that I'm new to ReasonML / BuckleScript / OCaml, so there may be things herein that are non-idiomatic. PRs encouraged and welcomed!
Getting Started
First, install the package:
yarn add --dev bs-tapeThen, add bs-tape to your bs-dev-dependencies in your bsconfig.json:
{
// ...
"bs-dev-dependencies": [
// ...
"bs-tape"
],
// ...
}Known Limitations and Differences from tape
equalhas been decomposed into typesafe:equalStr,equalInt, andequalFloatendTestreplacesend(which is a reserved keyword)endhas been decomposed into typesafe:endTestandendTestIfNoErr- Given that "arbitrarily shaped" data structures are non-idiomatic in ReasonML (and OCaml), the following tape assertions are not supported, but can be effectively simulated by creating the appropriate expression with the
==and!operators, then invoking theokassertion.deepEqualnotDeepEqualdeepLooseEqualnotDeepLooseEqual
License
ISC. See the LICENSE file.
