fix: coverage 0 report

This commit is contained in:
David Racero 2021-06-01 08:33:19 +02:00
parent 9af634fbcd
commit 60d3057aa2
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@
"test-scenarios": "npm run compile && npx hardhat test test-suites/test-aave/__setup.spec.ts test-suites/test-aave/scenario.spec.ts",
"test-subgraph:scenarios": "npm run compile && hardhat --network hardhatevm_docker test test-suites/test-aave/__setup.spec.ts test-suites/test-aave/subgraph-scenarios.spec.ts",
"test:main:check-list": "npm run compile && FORK=main TS_NODE_TRANSPILE_ONLY=1 hardhat test test-suites/test-aave/__setup.spec.ts test-suites/test-aave/mainnet/check-list.spec.ts",
"coverage": "npm run compile && npx hardhat coverage --testfiles 'test-suites/test-aave/*.ts'",
"coverage": "npm run compile && npx hardhat coverage --testfiles test-suites/test-aave/emptyrun.coverage.ts && rm -rf coverage.json coverage/ && npx hardhat coverage --testfiles 'test-suites/test-aave/*.spec.ts'",
"aave:evm:dev:migration": "npm run compile && hardhat aave:dev",
"aave:docker:full:migration": "npm run compile && npm run hardhat:docker -- aave:mainnet --skip-registry",
"aave:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- aave:mainnet --skip-registry",

View File

@ -0,0 +1,5 @@
import { makeSuite } from './helpers/make-suite';
/* Workaround to fix 0 coverage report issue */
makeSuite('Empty run for coverage', () => {});