From 56d1b0103f100c19ce0ee1572980b949161532f4 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 21 May 2018 16:38:43 -0700 Subject: Introduce CONFIG_FILE --- packages/contracts/test/utils/coverage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/contracts/test/utils/coverage.ts') diff --git a/packages/contracts/test/utils/coverage.ts b/packages/contracts/test/utils/coverage.ts index e3c5be428..58010e47f 100644 --- a/packages/contracts/test/utils/coverage.ts +++ b/packages/contracts/test/utils/coverage.ts @@ -14,7 +14,8 @@ export const coverage = { }, _getCoverageSubprovider(): CoverageSubprovider { const defaultFromAddress = devConstants.TESTRPC_FIRST_ADDRESS; - const config = JSON.parse(fs.readFileSync('compiler.json').toString()); + const CONFIG_FILE = 'compiler.json'; + const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString()); const zeroExArtifactsAdapter = new ZeroExArtifactAdapter(config.artifactsDir, config.contractsDir); return new CoverageSubprovider(zeroExArtifactsAdapter, defaultFromAddress); }, -- cgit v1.2.3