Test harness for the IdAM Express Middleware
npm install @hmcts/div-idam-test-harnessA test harness for the IDAM-Express-Middleware
* Node >=8.0
* yarn
``bashInstall the latest version
yarn add "@hmcts/div-idam-test-harness"
Usage
Require this module in your tests and call
idamExpressTestHarness.stub() before the app is initialised.Remember to call
.restore()` after every test.