Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
espower-loader
Advanced tools
Power Assert feature instrumentor on the fly.
espower-loader
is a Node.js module loader that enhances target sources on the fly. So you can instrument Power Assert feature without code generation for now.
espower-loader
applies espower to target sources on loading them. espower
manipulates assertion expression (JavaScript Code) represented as Mozilla JavaScript AST, to instrument power-assert feature into the code.
Please note that espower-loader
is an alpha version product. Pull-requests, issue reports and patches are always welcomed. See power-assert project for more documentation.
You can instrument power-assert
without code generation (e.g. withoug using grunt-espower
).
For mocha, Just add --require
option.
$ mocha --require ./path/to/enable-power-assert test/some_test_using_powerassert.js
where enable-power-assert.js
somewhere in your project is,
require('espower-loader')({
cwd: process.cwd(),
pattern: 'test/**/*.js'
});
You can specify espower
options explicitly.
require('espower-loader')({
// directory where match starts with
cwd: process.cwd(),
// glob pattern using minimatch module
pattern: 'test/**/*.js',
// options for espower module
espowerOptions: {
destructive: false,
powerAssertVariableName: 'assert',
lineSeparator: '\n',
targetMethods: {
oneArg: [
'ok'
],
twoArgs: [
'equal',
'notEqual',
'strictEqual',
'notStrictEqual',
'deepEqual',
'notDeepEqual'
]
}
}
});
Licensed under the MIT license.
FAQs
Power Assert feature instrumentor on the fly
The npm package espower-loader receives a total of 13,118 weekly downloads. As such, espower-loader popularity was classified as popular.
We found that espower-loader 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.