@godu/bs-ava
[![Build Status](https://travis-ci.com/godu/bs-ava.svg?branch=master)](https://travis-ci.com/godu/bs-ava)
Last updated 9 months ago by godu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @godu/bs-ava 
SYNC missed versions from official npm registry.

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"
    ]
  }
}

Current Tags

  • 3.0.0                                ...           latest (9 months ago)

9 Versions

  • 3.0.0                                ...           9 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0-2                                ...           a year ago
  • 1.0.0-1                                ...           a year ago
  • 1.0.0-0                                ...           a year ago
  • 0.2.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 18
Last Month 0
Dependencies (2)
  • ava ^1.0.0-beta.7
  • esm ^3.0.80
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |