Skip to content

Commit

Permalink
fix coverage reset
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjor committed Oct 23, 2019
1 parent 88d4dbe commit dff124d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ if (!["Original", "Patched", "Patched-without-extension"].includes(version)) {

rimraf.sync("screenshots");
fs.mkdirSync("screenshots");
rimraf.sync(".nyc_output");
fs.mkdirSync(".nyc_output");
rimraf.sync("public/coverage");
fs.mkdirSync("public/coverage");

describe("Simple", function() {
this.slow(2000);
Expand Down Expand Up @@ -128,6 +124,10 @@ describe("Simple", function() {
describe(main, function() {
if (version === "Patched" && main === "Application") {
before(async function() {
rimraf.sync(".nyc_output");
fs.mkdirSync(".nyc_output");
rimraf.sync("public/coverage");
fs.mkdirSync("public/coverage");
console.log(chalk.cyan("[start coverage]"));
await page.coverage.startJSCoverage({
resetOnNavigation: false
Expand Down

0 comments on commit dff124d

Please sign in to comment.