@godu/bs-ava

[![Build Status](https://travis-ci.com/godu/bs-ava.svg?branch=master)](https://travis-ci.com/godu/bs-ava)

Stats

StarsIssuesVersionUpdatedCreatedSize
@godu/bs-ava
833.0.03 years ago3 years agoMinified + gzip package size for @godu/bs-ava in KB

Readme

bs-ava

Build Status

Experimental BuckleScript bindings for Ava

Installation

npm install --save-dev @godu/bs-ava

Then add @godu/bs-ava to bs-dev-dependencies in your bsconfig.json:

{
  ...
  "bs-dev-dependencies": ["@godu/bs-ava"]
}

Getting started

open Sync;

test("Should pass", t => {
  t.deepEqual(1, 1);
  t.pass();
});
open Async;

test("Should pass", t => {
  Js.Global.setTimeout(() => t.end_(), 1000)
  |> ignore
});
open Promise;

test("Should pass", t => {
  t.notThrows(Js.Promise.resolve("foo"));
});

Coverage

  • Install nyc

    npm i -D nyc
    
  • Edit your package.json

    {
    "scripts": {
      ...
      "test": "nyc ava"
    },
    ...
    "nyc": {
      "reporter": [
        "lcov",
        "text-summary"
      ]
    }
    }
    

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.