
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.
mingus is a testing library for React components using babel, mocha, istanbul, sinon, and chai.
To install the latest release:
npm install mingus
To build the latest code directly from source:
npm install git://github.com/jmcriffey/mingus.git
src/CoolComponent.js:
import React from 'react';
import someLib from 'someLib';
class CoolComponent extends React.Component {
render() {
return (
<ul className="cool-list">
<li className="cool-list-item">1</li>
<li className="cool-list-item">2</li>
</ul>
);
}
getNum() {
return someLib.getNum();
}
}
export default CoolComponent;
tests/CoolComponent-test.js:
import Mingus from 'mingus';
import someLib from 'someLib';
import CoolComponent from './CoolComponent';
Mingus.createTestCase({
beforeEach() {
this.rendered = this.renderComponent(CoolComponent);
this.component = this.createComponent(CoolComponent);
},
testType() {
this.assertIsType(this.rendered, 'ul')
},
testClass() {
this.assertHasClass(this.rendered, 'cool-list');
},
testChildrenClasses() {
this.assertEveryChildHasClass(this.rendered, 'cool-list-item');
this.assertSomeChildHasClass(this.rendered, 'cool-list-item');
},
testChildrenTypes() {
this.assertEveryChildIsType(this.rendered, 'li');
this.assertSomeChildIsType(this.rendered, 'li');
},
testNthChildClass() {
this.assertNthChildHasClass(this.rendered, 0, 'cool-list-item');
},
testNthChildType() {
this.assertNthChildIsType(this.rendered, 0, 'li');
},
testGetNum() {
this.stub(someLib, 'getNum', () => 777);
this.assertEqual(component.getNum(), 777);
}
});
On the command line:
mingus cover && mingus check-coverage
Without coverage:
mingus unit
MIT License
FAQs
A testing library for React/Babel.
We found that mingus 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.