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

/node-test-parser/

    Package Sidebar

    Install

    npm i node-test-parser

    Weekly Downloads

    2,015

    Version

    2.2.2

    License

    MIT

    Unpacked Size

    14.7 kB

    Total Files

    28

    Last publish

    Collaborators

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