node-test-parser
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

node-test-parser

CI

Installation

npm i -D node-test-parser

Usage

Create a custom test reporter using the parser:

// reporter.js
import parseReport from 'node-test-parser'

export default async function* jsonReporter(source) {
  const report = await parseReport(source)
  yield JSON.stringify(report, null, 2)
}

Run tests using the custom reporter:

node --test --test-reporter ./reporter.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.2
    2,616
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.2.2
    2,616
  • 2.2.1
    0

Package Sidebar

Install

npm i node-test-parser

Weekly Downloads

2,616

Version

2.2.2

License

MIT

Unpacked Size

14.7 kB

Total Files

28

Last publish

Collaborators

  • lucalanziani
  • donal.moynihan
  • simoneb
  • eamonn.frisby
  • bpantha