7.1.2 • Published 3 years ago
amocha v7.1.2
amocha
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
7.1.2
3 years ago
7.1.1
4 years ago
7.1.0
4 years ago
7.0.2
4 years ago
7.0.1
4 years ago
6.0.0
5 years ago
5.0.2
5 years ago
5.0.1
5 years ago
5.0.0
6 years ago
4.0.0
7 years ago
3.0.0
7 years ago
2.0.0
7 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago