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.
jest-dynalite
Advanced tools
Enchanced
@shelf/jest-dynamodb
jest-dynalite
is a fork of @shelf/jest-dynamodb
used to allow unit tests
to perform dynamodb queries locally.
jest-dynalite
runs a dynalite instance per test runner, which means
test runners do not interfear with eachother.
jest-dynalite
clears tables between tests, so every test has a clean environment to run in.
yarn add jest-dynalite -D
jest.config.js
module.exports = {
...
preset: "./jest-preset.js"
}
Create a jest-dynalite-config.json
in your package root, which contain the tables
which should exist for your tests.
{
"tables": [
{
...
}
],
"basePort": 8000
}
Usage
const ddb = new DocumentClient({
...yourConfig,
...(process.env.MOCK_DYNAMODB_ENDPOINT && {
endpoint: process.env.MOCK_DYNAMODB_ENDPOINT,
sslEnabled: false,
region: "local"
})
});
process.env.MOCK_DYNAMODB_ENDPOINT
is unqiue to test runner
MIT
FAQs
Run your tests using Jest & Dynalite
The npm package jest-dynalite receives a total of 42,316 weekly downloads. As such, jest-dynalite popularity was classified as popular.
We found that jest-dynalite 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
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.