4.0.1 • Published 4 years ago

pon-task-mocha v4.0.1

Weekly downloads
303
License
Apache-2.0
Repository
github
Last release
4 years ago

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

ParamtypeDescription
patternstring|string[]Source file name pattern
optionsObjectOptional settings
options.reporterstringMocha reporter
options.timeoutnumberMocha test timeout

License

This software is released under the Apache-2.0 License.

Links

4.0.1

4 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.1

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.0.2

7 years ago