
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
broccoli-test-builder
Advanced tools
A broccoli plugin to build a tree that includes everything necessary to run tests.
Uses broccoli-lint-eslint to run jshint over the src code and test code.
Builds test files into amd modules and concats them into tests/built-amd-tests.js
Transpiles test files from es6 into es5.
Includes an amd loader, qunit.js, qunit.css, and a test-loader. Bring your own tests/index.html
.
Assumes:
lib/
(if not, specify a different path with options.libDirName
)tests/
index.html
exists in tests/
Usage:
var testBuilder = require('broccoli-test-builder');
var options = {
libDirName: 'path-to-your-lib-dir', // default: 'lib'
};
var testTree = testBuilder.build();
/*
testTree looks like:
/tests
├── built-amd-tests.js
├── index.html
├── loader.js
│ └── loader.js
├── qunit
│ ├── qunit.css
│ └── qunit.js
└── test-loader
└── test-loader.js
*/
This is intended to be used with a test index.html
that looks like the following.
The capitalized variable markers will be replaced with the correct output.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>YOUR TEST TITLE</title>
@@QUNIT_CSS
</head>
<body>
@@QUNIT_DOM
@@QUNIT_JS
<script src="/testem.js"></script>
@@LOADER_JS
<script src="../amd/YOUR-BUILT-AMD-CODE.js"></script>
@@AMD_TEST_JS
@@TEST_LOADER_JS
</body>
</html>
FAQs
build a conventional test tree
The npm package broccoli-test-builder receives a total of 49 weekly downloads. As such, broccoli-test-builder popularity was classified as not popular.
We found that broccoli-test-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.