This new feature came out of a projects needs, we wanted to integrate complex request logging for our mocks, to see which calls are being made with what params/headers/etc, up till now there wasn't an easy of doing this.
Now users can specify an array of custom Express middlewares they want shmock to use. They're added at config time and are added simply by iterating them and using Express's .use().
This new feature came out of a projects needs, we wanted to integrate complex request logging for our mocks, to see which calls are being made with what params/headers/etc, up till now there wasn't an easy of doing this.
Now users can specify an array of custom Express middlewares they want shmock to use. They're added at config time and are added simply by iterating them and using Express's
.use()
.Tests and documentation also added.