Skip to content

Commit

Permalink
Correct profiling grep
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Dec 24, 2022
1 parent 8738e91 commit ac281b0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,17 @@ const mochaOptions = (): MochaOptions => {
let timeout = 600000;
let grep;
let reporter;
let invert = false;

if (isProfiling) {
// if we're profiling, make sure to only run @profile tests without any timeout restriction, and silence most
// of test output
timeout = 0;
grep = '@profile';
reporter = 'mocha-silent-reporter';
} else {
// if we're running in dev, filter out profile tests
grep = '@profile';
invert = true;
}

return {
timeout,
color: true,
bail: true,
grep,
invert,
reporter
};
};
Expand Down

0 comments on commit ac281b0

Please sign in to comment.