You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is one main function exported in the module, `coverageMiddleware`.
13
13
14
14
### `coverageMiddleware`
15
-
[Express.js](https://expressjs.com) middleware that collects all HTTP requests made against the server. Scans all request handlers registered in the application and use them for comparison when collecting the coverage.
15
+
[Express.js](https://expressjs.com) middleware that collects all HTTP requests made against the server. Scans all request handlers registered in the application and pre-attaches middleware checking whether the given handler was called.
16
16
17
17
Registers endpoint (`GET /collectCoverage`) for collecting the coverage.
18
18
19
-
Middleware should be registered only in the test environment.
19
+
Middleware has to be registered only in the test environment.
0 commit comments