@hmcts/div-idam-test-harness
v1.9.0
Published
Test harness for the IdAM Express Middleware
Downloads
633
Maintainers
Keywords
Readme
Divorce IDAM Express Test Harness
A test harness for the IDAM-Express-Middleware
Requirements
- Node >=8.0
- yarn
Installation
# Install the latest version
yarn add "@hmcts/div-idam-test-harness"
# Install a specific version
yarn add "@hmcts/[email protected]"
Usage
Require this module in your tests and call idamExpressTestHarness.stub()
before the app is initialised.
Remember to call .restore()
after every test.