7.1.2 • Published 5 years ago

amocha v7.1.2

Weekly downloads
75
License
MIT
Repository
github
Last release
5 years ago

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

NameTypeDescription
patternstringGlob file name pattern
optionsObjectOptional settings
reporterstring
options.cwdstringWorking directory path
options.reporterstringMocha reporter
options.timeoutnumberTimeout duration

License

This software is released under the MIT License.

Links

7.1.2

5 years ago

7.1.1

5 years ago

7.1.0

6 years ago

7.0.2

6 years ago

7.0.1

6 years ago

6.0.0

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.0.0

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago