
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
mocha-eventually
Advanced tools
Retries a test until it eventually works.
eventually(function (next), [timeout], [interval]) -> Promise
If it doesn't work within timeout milliseconds, it's considered a failure.
If a test fails and timeout has not ellapsed yet, it will wait interval milliseconds and try again.
Returns a promise, which Mocha will happily consume.
var eventually = require('mocha-eventually')
it('eventually works', function () {
return eventually(function (next) {
fs.readFile('output.txt', 'utf-8', function (err, data) {
if (err) return next(err)
expect(data).toEqual('hello')
})
}, 2000)
})
mocha-eventually © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
FAQs
Retries a Mocha test until it works
The npm package mocha-eventually receives a total of 837 weekly downloads. As such, mocha-eventually popularity was classified as not popular.
We found that mocha-eventually 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.