7.1.2 • Published 4 years ago

amocha v7.1.2

Weekly downloads
75
License
MIT
Repository
github
Last release
4 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

4 years ago

7.1.1

5 years ago

7.1.0

5 years ago

7.0.2

5 years ago

7.0.1

5 years ago

6.0.0

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

7 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.0.0

8 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

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago