@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
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.70latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

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