aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-22 07:38:43 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-23 06:20:34 +0800
commit56d1b0103f100c19ce0ee1572980b949161532f4 (patch)
treeed806f5df4a17fc55371b84b038b50f284391443 /packages/contracts/test
parent1ff34bd0f4084d2f9dfd6f07447bb63684ac51ac (diff)
downloaddexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.gz
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.bz2
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.lz
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.xz
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.zst
dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.zip
Introduce CONFIG_FILE
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/utils/coverage.ts3
1 files changed, 2 insertions, 1 deletions
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);
},