1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-14 10:23:16 +02:00
uptime-kuma/test/prepare-jest.js

11 lines
201 B
JavaScript
Raw Normal View History

2021-10-05 11:39:44 +02:00
const fs = require("fs");
2022-03-02 09:48:08 +02:00
const rmSync = require("../extra/fs-rmSync.js");
2021-10-05 11:39:44 +02:00
2021-10-05 14:37:32 +02:00
const path = "./data/test-chrome-profile";
if (fs.existsSync(path)) {
2022-03-02 09:48:08 +02:00
rmSync(path, {
2021-10-05 14:37:32 +02:00
recursive: true,
});
}