![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@theintern/istanbul-loader
Advanced tools
A webpack loader that adds code coverage instrumentation
This is a webpack loader that uses istanbul-lib-instrument to add code coverage instrumentation to JavaScript files.
Install with
npm install @theintern/istanbul-loader --save-dev
Install the loader in a project and add an entry for it to the project's webpack.config:
module: {
rules: [
{
test: /src\/.*\.ts$/,
use: '@theintern/istanbul-loader'
},
...
]
}
Note that the istanbul-loader should be run after transpilers such as
TypeScript. This means that it should come before transpilers in a loader
list, or use enforce: 'post'
:
rules: [
{
test: /src\/.(\.ts$/,
use: [ '@theintern/istanbul-loader', 'ts-node' ]
},
...
]
or
rules: [
{
test: /src\/.(\.ts$/,
use: '@theintern/istanbul-loader',
enforce: 'post'
},
...
]
The rule test should only match source files, not all .ts
or .js
files, so
as not to instrument tests or support files.
Options can be passed using the standard webpack options
property:
rules: [
{
test: /src\/.(\.ts$/,
use: {
loader: '@theintern/istanbul-loader',
options: { config: 'tests/intern.json' }
}
},
...
]
Currently the only option used by the loader is 'config', which should point to
an
Intern config file.
The loader will use values for coverageVariable
and instrumenterOptions
from the Intern config, if present.
Intern is a JS Foundation project offered under the New BSD license.
© SitePen, Inc. and its contributors
FAQs
A webpack loader that adds code coverage instrumentation
We found that @theintern/istanbul-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.