
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.
@fleetplannerscollective/cest
Advanced tools
Cest is a small and light test runner for typescript.
I got frustrated with how slow Jest was at running tests, so I made this. It's simple and works.
npm install @fleetplannerscollective/cest
import cest from '@fleetplannerscollective/cest' // import cest
import { strict as assert } from 'assert' // use the default assertion library from node
const test = cest('my test suite') // Create a suite
test( // define a test
'passing test', // give the test a name
() => { // create a funtion to run the test
assert(true) // if the function doesn't throw an error, the test passes
}
)
test(
'failing test',
() => {
assert(false) // if the function throws an error, the test fails
}
)
test(
'should throw',
() => {
const t = () => {throw new Error()}
assert.throws(t, Error) // For tests which should throw an error, use assert.throws, provided by node.js
}
)
test(
'async test',
async () => { // Cest handles async tests fine
await new Promise((resolve) => {resolve(true)})
}
)
test.run() // run all the tests
Use the cli tool:
cest [path/to/ts/dir]
Cest will identify all .test.ts files in the path, find .tsconfig locate the compiled .js files and run them.
Cest will also identify all .test.js files in the path and run them.
You can run a sinlge test suite by directly calling the .js file
node mytest.js
import cest from '@fleetplannerscollective/cest'
const result = cest.runner('path to tests')
if (result) {
// tests passed
} else {
// tests failed
}
npm install.npm run buildnpm run testTo remove the dist folder for a completely fresh build npm run clean.
To incrementally rebuild whilst working npm run watch.
FAQs
Small and light test runner for typescript
The npm package @fleetplannerscollective/cest receives a total of 3 weekly downloads. As such, @fleetplannerscollective/cest popularity was classified as not popular.
We found that @fleetplannerscollective/cest 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.