From f42b7590f40a7d1d63d5b236e0eae8c694bf475a Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Tue, 1 Jun 2021 10:47:24 +0200 Subject: [PATCH] fix: Add coverage call and liquidity mining token test to scripts --- package.json | 3 +++ test/emptyrun.coverage.ts | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 test/emptyrun.coverage.ts diff --git a/package.json b/package.json index a0c2ef25..79368268 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "artifacts" ], "scripts": { + "test:main:lmtoken": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test/mainnet/static-atoken-lm/*.spec.ts", + "coverage:lmtoken": "npm run compile && npx hardhat coverage --testfiles 'test/emptyrun.coverage.ts' && rm -rf coverage.json coverage/ && MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat coverage --testfiles 'test/mainnet/static-atoken-lm/*.ts'", + "test:main:attack": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test/mainnet/vamtoken-attack.spec.ts", "run-env": "npm i && tail -f /dev/null", "hardhat": "hardhat", "hardhat:kovan": "hardhat --network kovan", diff --git a/test/emptyrun.coverage.ts b/test/emptyrun.coverage.ts new file mode 100644 index 00000000..d8d8a979 --- /dev/null +++ b/test/emptyrun.coverage.ts @@ -0,0 +1,3 @@ +import { makeSuite } from './helpers/make-suite'; + +makeSuite('Empty run for coverage', () => {});