.solcover.js 468 B

1234567891011121314151617
  1. const shell = require("shelljs");
  2. module.exports = {
  3. istanbulReporter: ["html", "lcov"],
  4. onCompileComplete: async function (_config) {
  5. await run("typechain");
  6. },
  7. onIstanbulComplete: async function (_config) {
  8. // We need to do this because solcover generates bespoke artifacts.
  9. shell.rm("-rf", "./artifacts");
  10. shell.rm("-rf", "./typechain");
  11. },
  12. providerOptions: {
  13. mnemonic: process.env.MNEMONIC,
  14. },
  15. skipFiles: ["mocks", "test"],
  16. };