Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Uncluttered, concurrent tests
No set-up, no global variables. Just run the test file in any environment and the cutest logs will appear in your console. That's it.
import test from 'cutest'
test('Comparing 1 and 1', async function test1 (t) {
t.assert(Number('1') === 1, '"1" equals 1')
})
test('This one is gonna fail', async function test3 (t) {
t.assert(Number('One') === 1, 'One equals 1')
t.log('Assertions don\'t break the computation')
throw new Error('Only Exceptions breaks the computation!')
})
test('Compare Json', async function test2 (t) {
t.compare({ a: 1 }, { a: 1 }, 'Compare two Json objects')
t.compare({ a: 1 }, { a: 2 }, 'Compare two Json objects')
t.compare({ a: 1 }, { a: 1, b: 4 }, 'Compare two Json objects')
t.compare('rocks!!!', 'CUTEST rocks', 'Compare two Strings')
t.compare([1, 2, 3], [1, 2], 'Compare Arrays')
})
Execute Script Once
node test.js
Live Reload with nodemon
nodemon test.js
Chrome DevTools Debugging with nodemon
You already know this one:
node --inspect --debug-brk test.js
Now go to chrome://inspect/#devices
and click on
"Open dedicated DevTools for Node". You didn't know about this one, didn't you?
Now you don't have to copy-paste the DevTools link anymore. It is automatically attached to the chrome browser.
Now combine this with nodemon:
nodemon --inspect --debug-brk test.js
Best node debugging ever!
Just include the test script in your HTML file. If you don't have one, we got a nice live-reload server for you:
cutest test.js --open
It's not Karma. But hey, it's not Karma!! (If you know what I mean..)
MIT © Kevin Jahns
FAQs
The CUTEST testing framework
The npm package cutest receives a total of 1 weekly downloads. As such, cutest popularity was classified as not popular.
We found that cutest 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.