diff options
Diffstat (limited to 'packages/contracts/test/global_hooks.ts')
-rw-r--r-- | packages/contracts/test/global_hooks.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/contracts/test/global_hooks.ts b/packages/contracts/test/global_hooks.ts new file mode 100644 index 000000000..23a99b47c --- /dev/null +++ b/packages/contracts/test/global_hooks.ts @@ -0,0 +1,8 @@ +import { getCoverageSubprovider } from '@0xproject/dev-utils'; + +after('generate coverage report', async () => { + if (process.env.COVERAGE) { + const coverageSubprovider = getCoverageSubprovider(); + await coverageSubprovider.writeCoverageAsync(); + } +}); |