(this: Mocha.Context)
| 60 | |
| 61 | export const mochaHooks = { |
| 62 | async afterAll(this: Mocha.Context) { |
| 63 | this.timeout(30000); |
| 64 | // Also output the nyc coverage if we have any |
| 65 | const nyc = await nycPromise; |
| 66 | if (nyc) { |
| 67 | nyc.writeCoverageFile(); |
| 68 | return nyc.report(); |
| 69 | } |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | initialize(); |