amocha

7.1.2 • Public • Published

amocha

Build Status npm Version JS Standard

Async wrapper for mocha

Installation

$ npm install amocha --save

Usage

'use strict'

const amocha = require('amocha')

;(async () => {
  // Run tests
  await amocha('test/**/*_test.js', {})

  // Measure coverage
  await amocha.coverage('test/**/*_test.js', {
    dir: 'coverage'
  })
}).catch((err) => console.error(err))

Signature

amocha(pattern, options, reporter) -> Promise

Params

Name Type Description
pattern string Glob file name pattern
options Object Optional settings
reporter string
options.cwd string Working directory path
options.reporter string Mocha reporter
options.timeout number Timeout duration

License

This software is released under the MIT License.

Links

/amocha/

    Package Sidebar

    Install

    npm i amocha

    Weekly Downloads

    237

    Version

    7.1.2

    License

    MIT

    Unpacked Size

    11.8 kB

    Total Files

    28

    Last publish

    Collaborators

    • okunishinishi