aboutsummaryrefslogblamecommitdiffstats
path: root/packages/contracts/test/global_hooks.ts
blob: 8b48b030d6fbe74f2279883b09e4d8a088edb40d (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                    
                                                 

                                               
                                                     
                                                                               


                                                       
import { env, EnvVars } from '@0xproject/dev-utils';

import { coverage } from '../src/utils/coverage';

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