
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Minimal Test Framework for NodeJS' modern ECMA Script capabilities:
name.test.(c|m)?js in the current directory or a subdirectory, except node_modules.// Use node's built-in assertion library.
import assert from 'assert/strict'
// export default class {} is also valid.
export class MyTestSuite {
static before() {
// This is called once for each test suite.
// Can be async.
}
constructor() {
// This is called once for each test
// because a new instance of this class is created for each test.
// For sync code can be a replacement for the non-static before method below.
}
before() {
// This is also called once for each test.
// Can be async.
}
test1() {
// A test
}
async test2() {
// Another test, note that one or more methods can be async
// except for the constructor.
}
after() {
// This is called once after each test.
// Can be async.
}
static after() {
// This is called once after each test suite.
// Can be async.
}
}
Install with npm i --save-dev classity.
Run once with npx classity or start a watcher with npx classity watch.
I wanted a simple test framework like teenytest but wanted to use Classes and Promises by default.
FAQs
Minimal Test Framework using JavaScript classes
The npm package classity receives a total of 4 weekly downloads. As such, classity popularity was classified as not popular.
We found that classity 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.