New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ava/bucklescript

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ava/bucklescript

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

latest
Source
npmnpm
Version
4.0.0-alpha.1
Version published
Weekly downloads
3
-25%
Maintainers
3
Weekly downloads
 
Created
Source

bs-ava

Build Status

Experimental BuckleScript bindings for Ava

Installation

npm install --save-dev ava@next @ava/bucklescript

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

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

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

Keywords

bucklescript

FAQs

Package last updated on 16 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts