pon-task-mocha

4.0.1 • Public • Published

pon-task-mocha

Build Status npm Version JS Standard

Pon tasks to run mocha tests

Installation

$ npm install pon-task-mocha --save

Usage

'use strict'
 
const pon = require('pon')
const mocha = require('pon-task-mocha')
 
async function tryExample () {
  const run = pon({
    'test:mocha': mocha('test/**/*.js'),
    'test': ['test:mocha']
  })
 
  run('test')
}
 
tryExample()
 

Signatures

define(pattern, options) -> function

Define task

Param type Description
pattern string|string[] Source file name pattern
options Object Optional settings
options.reporter string Mocha reporter
options.timeout number Mocha test timeout

License

This software is released under the Apache-2.0 License.

Links

/pon-task-mocha/

    Package Sidebar

    Install

    npm i pon-task-mocha

    Weekly Downloads

    11

    Version

    4.0.1

    License

    Apache-2.0

    Unpacked Size

    36 kB

    Total Files

    28

    Last publish

    Collaborators

    • realglobe