
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
benderjs-mocha
Advanced tools
Adapter for Mocha testing framework for Bender.js.
npm install benderjs-mocha
Add benderjs-mocha
to the plugins
array in your bender.js
configuration file:
var config = {
applications: {...}
browsers: [...],
plugins: ['benderjs-mocha'], // load the plugin
tests: {...}
};
module.exports = config;
Set mocha
as a framework
for the entire project or just a specific tests group:
var config = {
applications: {...}
browsers: [...],
framework: 'mocha', // use for entire project
plugins: ['benderjs-mocha'],
tests: {
Foo: {
basePath: '',
framework: 'mocha' // use for a specific tests group
paths: [...]
}
}
};
module.exports = config;
You can set some of Mocha's options using bender.js
configuration file.
var config = {
applications: {...}
browsers: [...],
framework: 'mocha',
// configure Mocha
mocha: {
ui: 'tdd'
},
plugins: ['benderjs-mocha'],
tests: {...}
};
module.exports = config;
###Available options:
ui
- Mocha's interface, possible values: bdd
, tdd
or exports
. Default: bdd
timeout
- test case timeout in milliseconds. Default: 2000
grep
- will only run tests matching the given pattern, this could break some of Bender's default behaviours ,so please use it at your own riskMIT, for license details see: LICENSE.md.
FAQs
Adapter for Mocha testing framework for Bender.js
The npm package benderjs-mocha receives a total of 50 weekly downloads. As such, benderjs-mocha popularity was classified as not popular.
We found that benderjs-mocha 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.