I'm trying to delete a directory when all the tests finish with an after, and I get the following error:
fs.rmdir is not a function
Here is mi code:
after(() => {
        const fs = require('fs');
        const dir = '../../../../../../downloads';
        
        fs.rmdir(dir, { recursive: true }, (err) => {
            if (err) {
                throw err;
            }
        });
    })
 
     
     
    