aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/global_hooks.ts
blob: b29e171d7bb31031b722ae9581e2a20b046b2bac (plain) (blame)
1
2
3
4
5
6
7
8
import { getCoverageSubproviderSingleton } from '@0xproject/dev-utils';

after('generate coverage report', async () => {
    if (process.env.SOLIDITY_COVERAGE) {
        const coverageSubprovider = getCoverageSubproviderSingleton();
        await coverageSubprovider.writeCoverageAsync();
    }
});