Tuesday, 17 April 2018

How to mock Rabbot/amqb.node for integration testing

I'm trying to find a way to mock amqp responses in an application, to avoid having to create a running instance of RabbitMQ just to be able to run integration tests. The app uses Rabbot as an abstraction layer, which in turn uses amqplib (amqp.node) under the hood.I've done some Googling, and it only turned up one Github issue of someone else wanting to achieve the same thing in 2014 hereHas anyone managed to achieve what I'm trying to do, or have any suggestions of a better way to go about it?

Submitted April 17, 2018 at 10:17AM by jbutlr

No comments:

Post a Comment