@updater/test-utils

0.0.7 • Public • Published

Services Test Utils

Simple test utilities for services.

Usage

Initialization

test-utils takes a config object at initialization.

const testUtils = require('@updater/test-utils')({
  amqpUrl: 'amqp://localhost'
})

AMQP Wrap

API

{ amqpWrap } = testUtils
const queue = 'queue'
const exchange = 'exchange'
const route = 'route'
amqpWrap(queue, exchange, route, async channel => {
  // Some tests that will get cleaned up
})

Readme

Keywords

none

Package Sidebar

Install

npm i @updater/test-utils

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

2.03 kB

Total Files

4

Last publish

Collaborators

  • akshah123
  • sjricc