Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mutation-testing-real-time

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mutation-testing-real-time

Helpers to create a NodeJS server for real-time reporting for a mutation testing elements report

  • 3.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Mutation testing badge Build Status

Mutation testing Real time

A NodeJS helper package to help with the server side of real-time reporting.

Usage example

import { createServer } from 'http';
import { RealTimeReporter } from 'mutation-testing-real-time';

const reporter = new RealTimeReporter({ accessControlAllowOrigin: '*' });
const server = new createServer((req, res) => {
  if (req.url === '/sse') {
    reporter.add(res);
  }
});

// Whenever a mutant result comes in:
reporter.sendMutantTested({ id: '1', status: 'Killed' });
// ...

// Whenever we are done:
reporter.sendFinished();

API Reference

RealTimeReporter

RealTimeReporter.prototype.sendMutantTested [(Partial<MutationTestResult>) => void]
RealTimeReporter.prototype.sendFinished [() => void]
Event: 'client-connected'
  • client: MutationEventSender

Emitted each time a client connects to this real time reporter.

Event: 'client-disconnected'
  • client: MutationEventSender

Emitted each time a client disconnects from this real time reporter.

Keywords

FAQs

Package last updated on 11 Sep 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc