beater-reporter
v2.0.2
Published
beater reporter interface for TypeScript
Downloads
55
Maintainers
Readme
beater-reporter
beater reporter interface for TypeScript.
See: bouzuya/beater README.
Note:
beater-reporter@>=2.0 <3.0
...beater@>=7.0 <8.0
beater-reporter@>=1.0 <2.0
...beater@>=5.0 <7.0
beater-reporter@>=0.4 <1.0
...beater@>=0.4 <5.0
beater-reporter@>=0.3 <0.4
...beater@<0.4
beater-reporter@<0.3
is beater default reporter implementation (is not interface). bouzuya/beater-cli default reporter moved into bouzuya/beater-cli-reporter.
Installation
$ npm install --save-dev beater-reporter
Usage
// index.ts
import { runWithOptions } from 'beater';
import { TestReporter } from 'beater-reporter';
const reporter: TestReporter = () => {
/* ... */
};
const test1 = test(/* ... */);
runWithOptions({ reporter: reporter() })([test1]).catch(() => process.exit(1));