
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
I was once lost, but now I'm found.
console.log
debugging really hardA simple example:
qqunit = require 'qqunit'
tests = glob.sync("#{__dirname}/test/**/*_test.coffee")
qqunit.Runner.run tests
or
you@host $: npm install qqunit
you@host $: qqunit test_a.coffee test_b.coffee
More complex:
glob = require 'glob'
path = require 'path'
qqunit = require 'qqunit'
# Load jquery into window
jqueryPath = path.join(__dirname, 'lib', 'jquery.js')
qqunit.Environment.jsdom.jQueryify window, jQueryPath, (window, jQuery) ->
global.jQuery = jQuery
# Load test helper
Helper = require './batman/test_helper'
global[k] = v for own k,v of Helper
global.MyCoolCode = require '../src/my_cool_code'
tests = glob.sync("#{__dirname}/**/*_test.coffee")
console.log "Running test suite. #{tests.length} files required."
qqunit.Runner.run tests, (stats) ->
process.exit stats.failed
Horray!
qqunit came from me being really, really sad. node-qunit put me in a dark place, but out I have come with less than 100 lines of CoffeeScript which accomplish the same thing. qqunit is stupid simple: run QUnit inside jsdom and add some log statements to show you how it goes in the console.
qqunit is copyright 2012 by Shopify, released under the MIT License (see LICENSE for details).
FAQs
Testing for sad people
The npm package qqunit receives a total of 1 weekly downloads. As such, qqunit popularity was classified as not popular.
We found that qqunit 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.