{"_id":"@bakerstreet-industries/bus-test","_rev":"1-c8574e3bdf596e800c94f55251a1629b","name":"@bakerstreet-industries/bus-test","dist-tags":{"latest":"0.0.16"},"versions":{"0.0.16":{"name":"@bakerstreet-industries/bus-test","version":"0.0.16","description":"A dev-dependency package used to test transport implementations.","homepage":"https://github.com/node-ts/bus#readme","main":"./dist/index.js","types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bakerstreet-industries/bus.git"},"scripts":{"build":"tsc --project tsconfig.json --declaration","build:watch":"yarn run build --incremental --watch --preserveWatchOutput","lint":"tslint --project tsconfig.json 'src/**/*.ts'","lint:fix":"yarn lint --fix"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/node-ts/bus/issues"},"dependencies":{"@node-ts/bus-core":"^1.0.12","@node-ts/bus-messages":"^1.0.4","@node-ts/code-standards":"^0.0.10","@types/faker":"^5.5.7","@types/node":"^14.14.31","class-transformer":"^0.4.0","faker":"^5.5.3","reflect-metadata":"^0.1.13","tslib":"^2.3.0","tslint":"^6.1.3","typemoq":"^2.1.0","typescript":"^4.3.5","uuid":"^8.3.2"},"gitHead":"22878835e97f47c5d0cb2aac8b222a0765e1e8fc","_id":"@bakerstreet-industries/bus-test@0.0.16","_nodeVersion":"14.18.1","_npmVersion":"lerna/4.0.0/node@v14.18.1+arm64 (darwin)","dist":{"integrity":"sha512-uTLjsTHR/TezeYVpupqnu+Gytvwb+OakeF1qKTB7bHZEUT1X8mFulCMO9djksrGn9JbZLG8DvHA9EUfQRzIkDg==","shasum":"eb6687a593e000061121b5634bd1a59b81952f01","tarball":"https://registry.npmjs.org/@bakerstreet-industries/bus-test/-/bus-test-0.0.16.tgz","fileCount":48,"unpackedSize":38382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiB+9iCRA9TVsSAnZWagAAaRsP+wa0FBH9kauROAyrfV1/\nc0+HzXqUCoVn2Gumo6dl+7EYsMUlwpT850KcKX0N0qlw/AP+x/jyTZAjsXKo\n6iLqgeIdRvXXI9n4PE/JnaeLTki6NJjfikXCMr1kau8Kn1IcTFDJzE+09t3L\nfRHLPOe9Gn0C7k9+jMdhTdlk0jyKuN6z8BcPdNTAMylKX7YIQqY9dTbQ3BZs\nCU0TPrd+Rcldk4mQ5tiwlZMALqBjkwzkRcXblUmzH7XMOxCEWn22ByjobD4r\nocYpX2CjlqCmC1e6cknJwwmx17otu1PmyKxcK6z0ycOR6NEvXZBuCPDzBP1a\nvPa3FCbM5RipUJdIW6TVld4PlYTKvWczql0V63iGbsg3boGXbGk7KL6WQlz7\nSmtCyE+/EdHUMm6UzTQgWl1ZDGXEbr6Ng/3ooZb9iq/QRQk6/l5/5TiQ+K7m\nJJTvZZfYF4ST39HmvndwBozZGVLb0lIKyrS+cLJ8LBazmn7Mowst62epDEw+\np9NyeOGGeimNvGnINp6qWMk1r54IpDvwgn1xkDrk/VwzvQ5Vzp5hOBwihW7b\nlzsSPqQ5t3upg0L4/qjSemhCkc1rt7knoyBkZ40JWM4IgOXGyp6/Ja/yB4k2\n6tEe+02uYSmfsX8vj7OO+AOxFSU/LmQUNpnzcip9h1otj0Vawe+0GNQjwEkP\nt7qn\r\n=Cff9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNIvGiM8BXnI225VYlKa3ODX0a8+2EybqC9pYMlfeSrQIhAMxJJ2Ybedw+zUsSs5ExLdPUb6+Y6VY5MSmoRqooI8wJ"}]},"_npmUser":{"name":"roustalski","email":"russ@bakerstreet.industries"},"directories":{},"maintainers":[{"name":"roustalski","email":"russ@bakerstreet.industries"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bus-test_0.0.16_1644687202590_0.013198177985050963"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-12T17:33:22.509Z","0.0.16":"2022-02-12T17:33:22.769Z","modified":"2022-04-04T17:32:07.898Z"},"maintainers":[{"name":"roustalski","email":"russ@bakerstreet.industries"}],"description":"A dev-dependency package used to test transport implementations.","homepage":"https://github.com/node-ts/bus#readme","repository":{"type":"git","url":"git+https://github.com/bakerstreet-industries/bus.git"},"bugs":{"url":"https://github.com/node-ts/bus/issues"},"license":"MIT","readme":"# @node-ts/bus-test\n\nThis package provides a common suite of tests for [@node-ts/bus](https://bus.node-ts.com) that help to ensure consistency across packages that extend the library by adding a new [transport](https://bus.node-ts.com/guide/transports) adapter.\n\nThe package expects that [jest](https://www.npmjs.com/package/jest) is used as the test runner.\n\n## Installation\n\nAdd this to your transport or persistence package:\n\n```sh\nnpm i @node-ts/bus-test --save-dev\n```\n\n## Implementation\n\nTransport tests are run by creating a `describe()` block and calling `transportTests()` with the following parameters:\n\n- **transport** - A fully configured transport that's the subject under test\n- **publishSystemMessage** - A callback that will publish a `@node-ts/bus-test:TestSystemMessage` with a `systemMessage` attribute set to the value of the `testSystemAttributeValue` parameter\n- **systemMessageTopicIdentifier** - An optional system message topic identifier that identifies the source topic of the system message\n- **readAllFromDeadLetterQueue** - A callback that will read and delete all messages on the dead letter queue\n\n### Example\n\nExamples of how to implement the standard transport tests can be viewed by looking at existing implementations such as:\n\n- [RabbitMqTransport](https://github.com/node-ts/bus/blob/master/packages/bus-rabbitmq/src/rabbitmq-transport.integration.ts)\n- [SqsTransport](https://github.com/node-ts/bus/blob/master/packages/bus-sqs/src/sqs-transport.integration.ts)\n","readmeFilename":"README.md"}