bi-service-test-utils

1.1.0 • Public • Published
  • Loads a bi-service based service (from service entry point, usually index.js).
  • Makes sure tests are executed against empty database with restricted db name
  • Runs service db migrations before executing tests
  • Cleans up after itself after tests execution
require('bi-service-test-utils')('<service-entrypoint-file-path>');

Tests

Requires:

  • docker
  • docker-compose@1.18

npm run docker:test

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i bi-service-test-utils

    Weekly Downloads

    1

    Version

    1.1.0

    License

    GPL-3.0

    Unpacked Size

    42.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • bistudio