Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
mutation-testing-real-time
Advanced tools
Helpers to create a NodeJS server for real-time reporting for a mutation testing elements report
A NodeJS helper package to help with the server side of real-time reporting.
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();
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.
3.3.0 (2024-09-11)
FAQs
Helpers to create a NodeJS server for real-time reporting for a mutation testing elements report
We found that mutation-testing-real-time demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.