
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
better-unit
Advanced tools
better-unit is a wrapper around the nodeunit module, with the following additions:
Map
, Set
, WeakMap
, and WeakSet
using the deepEqual()
assertion.const betterUnit = require('better-unit')
betterUnit.run(['tests'])
.catch((error) => {
console.error(error.stack)
process.exitCode = 1
})
better-unit includes a command line program to run tests as well.
better-unit testmodule1.js testfolder [...]
better-unit supports a subset of nodeunit's command line options:
-r
: Recurse into subdirectories.-t testName
: Filter tests based on testName
.betterUnit.run(files, options) Returns: Promise
Runs all specified tests.
files
(Array): A list of files or directories containing tests to run.options
(Object): Configuration for the nodeunit reporter.
recursive
(Boolean): Whether nodeunit should recurse into subdirectories of files
to find tests.testspec
(String): Filter tests based on the specified test name.rejectionDelay
(Number): Duration in milliseconds to wait for unhandled rejections to be handled before terminating the test run due to an unhandled rejection.Copyright better-unit contributors. Released under the terms of the ISC license.
FAQs
Improved nodeunit
We found that better-unit 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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.