
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
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 20 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.