Shared
Package for shared utilities/elements in typescript.
Usage
This package is to store shared utilities for other packages. It is not intented to build and publish it as is.
Types
To help IDE, when modifying. You can run yarn build:types
to build typecsript file and commit the changes.
This npm script also download and convert to typescript definition file DIP (API + CAS) swagger. You can update only those genereated file using yarn build:swagger
.
Components
DaaS Client
TODO
Event Bus
TODO
Event Bus Logger
TODO
Tests
Tests are located in the test folder and written using typescript. Test runner is mocha and we are using chai for assertion and sinon for mocking and spying.
Three options for running tests.
yarn run test
yarn run test:coverage
yarn run test:watch
- test to run unit tests
- test:coverage to run unit tests and generate coverage report
- test:watch to run in watch mode