
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
This is a minimalistic version of the Mocha test framework, with a DSL that is a subset of the Mocha DSL.
npm install tinymocha
and in your code:
import {describe, it, beforeEach} from "tinymocha"
or
var tinymocha = require("tinymocha");
var describe = tinymocha.describe
var it = tinymocha.it
var beforeEach = tinymocha.beforeEach
The rest is just Mocha syntax.
Tinymocha can be used either in the browser or or in Node. In Node it properly sets process.exitCode,
so it can be used in test frameworks and CI.
It only supports one-level deep describe blocks. So no describe in describe is supported.
Tinymocha outputs results of test cases and headings of test suites by console.log and console.error calls.
Asynchronity is supported but only with promises (not with done callbacks). So just as in Mocha,
test cases can return Promise objects (or thenables) and Tinymocha will
wait for them to be resolved or rejected.
Bug reports, feature requests and pull requests are welcome on GitHub :)
MIT
FAQs
A minimalistic test framework that supports a subset of Mocha
We found that tinymocha 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.