0.2.0 • Published 4 years ago

mock-nats-client v0.2.0

Weekly downloads
1,678
License
MIT
Repository
github
Last release
4 years ago

Mock NATS client

Runs a mocked, in-memory version of NATS which comes in handy when writing tests that evolves around publishing and subscribing to messages using the node NATS client.

This mocked NATS client exposes same API as Node NATS Client but instead of connecting to a NATS bus it will publish and subscribe in memory.

Usage

npm install mock-nats-client --save-dev

Use NATS node client as-is now, but instead of importing (or requiring) nats, import mock-nats-client.

Support

  • Basic subscribe (limited support for subscribe options)
  • Basic unsubscribe
  • Publish
  • Queue groups
  • Timeout

On the roadmap:

  • Request
  • Auto unsubscribe
  • Max wanted
  • ...you name it!
0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago