aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils/src/coverage.ts
blob: 1750d19ce4e6f89736ff293df3a7b0303a77eab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { CoverageSubprovider } from '@0xproject/sol-cov';
import * as _ from 'lodash';

let coverageSubprovider: CoverageSubprovider;

export function getCoverageSubprovider(): CoverageSubprovider {
    if (_.isUndefined(coverageSubprovider)) {
        const artifactsPath = './src/artifacts';
        const contractsPath = './src/contracts';
        const networkId = 50;
        coverageSubprovider = new CoverageSubprovider(artifactsPath, contractsPath, networkId);
    }
    return coverageSubprovider;
}