amqplib-mocks

    1.3.0 • Public • Published

    amqplib-mocks

    NPM Version Build Coverage

    A simple mocking framework for amqplib. Currently supports the following:

    • Multiple connections
    • Routing messages based on routingKey
    • Retrieving any published messages on a channel
    • Asserting topology
    • The server remotely closing a channel

    Usage

    const amqplib = require( "amqplib-mocks" );
    const proxyquire = require( "proxyquire" );
     
    const server = proxyquire( "./app", { amqplib } );
    server.listen();

    Keywords

    none

    Install

    npm i amqplib-mocks

    DownloadsWeekly Downloads

    241

    Version

    1.3.0

    License

    none

    Last publish

    Collaborators

    • bunk