Pon tasks to run mocha tests
$ npm install pon-task-mocha --save
'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()
Define task
Param | type | Description |
---|---|---|
- | string|string[] | Source file name pattern |
options | Object | Optional settings |
options.reporter | string | Mocha reporter |
options.timeout | number | Mocha test timeout |
- | string|string[] | Test source filename (Used as watch target) |
This software is released under the Apache-2.0 License.