Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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)

  • 4.0.0-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc