1.8.2 • Published 2 years ago

mock-amqplib v1.8.2

Weekly downloads
921
License
ISC
Repository
github
Last release
2 years ago

mock-amqplib

This module is intended to replace rabbitMq in integration tests to gain speed in test execution.

Usage

with mock-require in tests:

// setup
var mockRequire = require('mock-require');
mockRequire('amqplib', 'mock-amqplib');

// teardow
mockRequire.stopAll();

or simply overwrite amqplibs connect method:

amqplib.connect = mockAmqplib.connect;

Similar modules:

amqplib-mocks, exp-fake-amqplib (callbacks only), amqplib-mock,

As far as I can tell they try to solve the same problem, but they implemented different parts of the API.

For this module I implemented whatever was neccesary to use it in the app I'm currently developing, so parts are missing here too, pull requests are welcome.

1.8.2

2 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.6.2

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

4 years ago

1.3.0

5 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago