0.2.1 • Published 3 years ago

@compassdigital/helper v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

CDL Helper Package

This package serves as a single source of truth for a wide spectrum of typed and tested helper functions, designed for usage across the entire CDL backend system. Helpers are organized into modules per entity, in the src directory. This package is written in typescript. It can be used in tests, request handlers, services, scripts, etc. The inspiration for this package is that CDL test suites contain a lot of duplication of identical logic, and many of those duplicated test-helpers are not tested, or typed. This package addresses that issue by housing that logic in one place. Please add helpers here ad-hoc while developing/testing features in any package.

scripts:

  • npm run test:debug

    this is the main script to use while developing, will run tsc and then run tests in debug watch mode

  • npm run debug

    use if required to step into any code while developing outside of test environment, such as examining variables in src/index.ts to see how they are exporting, etc.