🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-test-parser

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-test-parser

Node.js test runner report stream parser

3.0.0
latest
Source
npm
Version published
Weekly downloads
6.9K
16.98%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

test

FAQs

Package last updated on 06 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts