fix preparing test

pull/563/head
LouisLam 3 years ago
parent f0670dde20
commit 2bf6a04f81

@ -1,5 +1,9 @@
const fs = require("fs");
fs.rmdirSync("./data/test-chrome-profile", {
recursive: true,
});
const path = "./data/test-chrome-profile";
if (fs.existsSync(path)) {
fs.rmdirSync(path, {
recursive: true,
});
}

@ -1,5 +1,9 @@
const fs = require("fs");
fs.rmdirSync("./data/test", {
recursive: true,
});
const path = "./data/test";
if (fs.existsSync(path)) {
fs.rmdirSync(path, {
recursive: true,
});
}

Loading…
Cancel
Save