Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
🐷 A flexible and easy-to-use Test Runner for parallel or sequential runs and high isolation level
🖇️ A flexible and easy-to-use Test Runner for parallel or sequential runs and high isolation level.
🪄 Runs test files in an individual process, shows progress and exits.
process.exit
at several depths on the same process node.npm install --save-dev poku
import { poku } from 'poku';
await poku(['./a', './b']);
npx poku --include='./a,./b'
To run your tests without compile, just install tsx
and it's done:
npm install --save-dev tsx
poku
poku('./targetDir');
poku(['./targetDirA', './targetDirB']);
npx poku --include='./targetDir'
npx poku --include='./targetDirA,./targetDirB'
filter
Filter by path using Regex to match only the files that should be performed.
/**
* @default
*
* Testing all `*.test.*` files.
*/
poku(['...'], {
filter: /\.test\./,
});
/**
* Testing all `ts`, `js`, `mts` and `mjs` files
*/
poku(['...'], {
filter: /\.(m)?(j|t)?s$/,
// filter: /\.(js|ts|mjs|mts)$/,
});
# Testing only a specific file
npx poku --include='...' --filter='some-file'
# Testing only paths that contains "unit"
npx poku --include='...' --filter='unit'
By using
FILTER
from Environment Variable, it will overwrite thefilter
option.
# Testing only a specific file
FILTER='some-file' npx poku --include='...'
# Testing only paths that contains "unit"
FILTER='unit' npx poku --include='...'
parallel
Determines the mode of test execution across parallelism or sequential modes.
/**
* @default
*
* Sequential mode
*/
poku(['...'], {
parallel: false,
});
/**
* Parallel mode
*/
poku(['...'], {
parallel: true,
});
🧑🏻🎓 Soon documenting all options and Poku's usage variations.
FAQs
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
We found that poku demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.