Skip to content

resinfo/rescript-ava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ReScript bindings to the AVA test framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published