remove directory with rmSync other than depricated rmdirSync
This commit is contained in:
parent
5583224c33
commit
5608a73e3d
|
@ -23,7 +23,7 @@ describe('Calendar Merging API', () => {
|
||||||
afterAll( async () => {
|
afterAll( async () => {
|
||||||
// Clean up the merged calendars directory after tests
|
// Clean up the merged calendars directory after tests
|
||||||
if (fs.existsSync(MERGED_CALENDARS_DIR)) {
|
if (fs.existsSync(MERGED_CALENDARS_DIR)) {
|
||||||
fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true });
|
fs.rmSync(MERGED_CALENDARS_DIR, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
// Close the server
|
// Close the server
|
||||||
await new Promise(resolve => server.close(resolve));
|
await new Promise(resolve => server.close(resolve));
|
||||||
|
|
Loading…
Reference in New Issue