.solcover.js 434 B

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