Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
tropic
Advanced tools
Readme
Tropic offers following features:
only
and skip
const test = require('tropic');
const assert = require('assert');
test('title', () => {
assert.equal(1 + 2, 3)
});
test.only('title test.only', () => {
assert.equal(1 + 2, 3)
});
test.skip('title test.skip', () => {
assert.equal(1 + 2, 3)
});
test('title done callback', (done) => {});
test('title promise', () => Promise.resolve());
test('title async-await', async () => await () => {});
You can install tropic using npm:
npm install --save-dev tropic
After you created your first test file (e.g. test.spec.js
) you might just run tropic like the following:
tropic **/*.spec.js --watch
Usage with babel / ES2019:
npm install @babel/register --save-dev
tropic **/*.spec.js --require=@babel/register
Note: Please verify that you have a .babelrc
or babel config within your package.json.
Also make sure that you have all plugins/presets
in installed and configured.
--watch
Starts a watcher for the current directory. On file changes the tests will be automaticly executed again. In case there is already an execution running, the running execution will be canceled. The watcher ignores the node_modules
directory, dotfiles and hidden directories like .idea
.
--require
Following an example using @babel/register
:
tropic **/*.spec.js --require=@babel/register
Multiple modules are also supported:
tropic **/*.spec.js --require=@babel/register,./custom-local-script.js
--timeout
Sets the threshold of the accepted test execution duration in milliseconds. [Default 200 ms]
tropic **/*.spec.js --timeout=20
node cli test/assert
package.json
for further scriptsFAQs
Test Runner Library
We found that tropic 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.