A testing utility library for verifying custom store implementations compatible with the better-queue package. Version 1.0.3 is the latest stable release. This package provides a test suite interface to ensure that custom queue stores (e.g., memory, database-backed) conform to the expected API and behavior. It integrates with Mocha and is intended as a dev dependency for store authors. Key differentiator: it reduces manual testing overhead and guarantees compatibility with better-queue's features.
npm install better-queue-store-testNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the test utility to validate a memory store (from better-queue-memory) against the basic store test suite.
Use require() instead of import.
Install Mocha as a dev dependency and run tests with mocha command.
Ensure the callback is called with (error, store) where error is null on success.
Always provide a destroy function that calls cb(); for no-op stores, use cb(null).
Use const test = require('better-queue-store-test'); then test.basic(...).Ensure your create/destroy functions call the callback promptly, or increase Mocha timeout with --timeout.
Call cb(null, store) with a valid store object.