![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
buster-istanbul
Advanced tools
busterjs coverage extension
Add buster-istanbul as a dependency in your package.json file.
{
"name": "awesome name",
...
"dependencies": {
"buster-istanbul": "*"
}
}
Configure buster to use buster-istanbul as extension
module.exports.tests = {
environment: "node",
rootPath : "./",
sources: [
"src/**/*.js"
],
tests : [
"test/**/*-test.js"
],
"buster-istanbul": {
outputDirectory: "coverage",
format: "lcov"
},
extensions: [
require('buster-istanbul')
]
};
Buster JS options
sources
will be the files that will be instrumented.
buster-istanbul options
outputDirectory
is path to where the files will be written to.
Defaults to the current working directory.
format
is a string or a list of formats to generate.
Currently supported formats:
if text and text-summary formats are given, coverage.txt and coverage-summary.txt files will be generated besides being output to the console at the same time.
silent
is a flag to turn off reporting at the end of the test run.
Valid values is true
or false
. Defaults to false
.
instrument
is a flag to turn off instrumentation of your source file.
You will need to handle this yourself. Defaults to true
.
Write your buster test as usual.
Example project: buster-istanbul-demo
Copyright (c) 2013 kates
Licensed under the MIT license.
FAQs
buster extension for istanbul code coverage.
The npm package buster-istanbul receives a total of 12 weekly downloads. As such, buster-istanbul popularity was classified as not popular.
We found that buster-istanbul demonstrated a not healthy version release cadence and project activity because the last version was released 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.