Helper library to write tests against NATS.
npm install hemera-testsuite



- You want to create an integration test (cluster support)
- You want to run in-memory tests
Install NATS Server and include the path to the executable in your user PATH environment variable. (Only needed for integration tests)
```
npm i hemera-testsuite
- Support of wildcard * and > subjects
- Support for maxMessages$, expectedMessages$ options
- Support for request & publish
- Support for timeouts
- Custom queue groups
- Special one-to-one publish
- Load balancing
- Connection related states
\*In this case we recommend to start a real NATS Server.
`js``
const Hemera = require('nats-hemera')
const Nats = require('hemera-testsuite/nats')
const nats = new Nats()
const hemera = new Hemera(nats, {
logLevel: 'info'
})
- Run your tests against a real NATS server