7.1.2 • Published 3 years ago

amocha v7.1.2

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

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