forked from ryanmwangi/CalMerger
Clean up the merged calendars directory before tests
This commit is contained in:
parent
5b40bf5d75
commit
5ec42d07bb
|
@ -24,6 +24,11 @@ describe('Calendar Merging API', () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
// Start the server
|
// Start the server
|
||||||
server = app.listen(0);
|
server = app.listen(0);
|
||||||
|
// Clean up the merged calendars directory before tests
|
||||||
|
fs.rmdirSync(CALENDARS_DIR, { recursive: true });
|
||||||
|
if (fs.existsSync(CALENDARS_DIR)) {
|
||||||
|
fs.rmdirSync(CALENDARS_DIR, { recursive: true });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
|
Loading…
Reference in New Issue