
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@sidequest/backend-test
Advanced tools
@sidequest/backend-test is a test suite for backend implementations of Sidequest, a Node.js library for managing background jobs and distributed queues.
A comprehensive test suite for validating Sidequest backend implementations.
This package provides a standardized test suite that all Sidequest backend implementations should pass. It ensures that backends correctly implement the Backend
interface and behave consistently across different database providers.
The test suite is built using Vitest and covers all core backend operations including job management, queue operations, migrations, and cleanup routines.
Install the following packages to use the test suite:
npm install --save-dev @sidequest/backend-test vitest
# or
yarn add -D @sidequest/backend-test vitest
Your backend must implement the complete Backend
interface, including:
The test suite is designed to be used in your backend's test files. Simply import the testBackend
function and provide a factory that creates your backend instance:
import { testBackend } from "@sidequest/backend-test";
import MyBackend from "../src/my-backend";
// For file-based databases like SQLite
testBackend(() => new MyBackend("test.sqlite"));
// For connection-string databases like PostgreSQL
const connectionString = process.env.DATABASE_URL ?? "postgresql://localhost:5432/test";
testBackend(() => new MyBackend(connectionString));
This code should be included in your backend's test files, typically in a *.test.ts
file.
Add the test to your package.json scripts:
{
"scripts": {
"test": "vitest",
"test:ci": "vitest run"
}
}
Then run with:
npm test
# or
yarn test
For CI environments:
npm run test:ci
# or
yarn test:ci
The test suite automatically handles:
TESTING ONLY - This test suite is designed for testing environments only. It will:
LGPL-3.0-or-later
FAQs
@sidequest/backend-test is a test suite for backend implementations of Sidequest, a Node.js library for managing background jobs and distributed queues.
The npm package @sidequest/backend-test receives a total of 84 weekly downloads. As such, @sidequest/backend-test popularity was classified as not popular.
We found that @sidequest/backend-test demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.