rescript-ava

3.15.0 • Public • Published

Rescript AVA

This is a set of ReScript bindings to the AVA test framework.

Installation

Using Yarn or NPM:

yarn add --dev ava rescript-ava
npm install --save-dev ava rescript-ava

Usage

Ava.test("should run a test", t => {
  let answer = 3.14

  t->Ava.is(answer, 3.14, ~message="Should be a tasty dessert", ())
})

// or

open Ava

test("should run a test", t => {
  let answer = 3.14

  t->is(answer, 3.14, ~message="Should be a tasty dessert", ())
})

All assertions follow a t first, ...args, optional ~message, unit format as demonstrated above.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Package Sidebar

Install

npm i rescript-ava

Weekly Downloads

6

Version

3.15.0

License

MIT

Unpacked Size

13.3 kB

Total Files

6

Last publish

Collaborators

  • oliverfencott