Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterAll((done) => {
db.disconnect().then(done);
});
afterAll((done) => {
db.disconnect().then(done);
});
afterAll(async () => {
await fileUtils.deleteFiles([
path.join(configPaths.uploadedDocuments, 'generated1.pdf'),
path.join(configPaths.uploadedDocuments, 'generated2.pdf'),
path.join(configPaths.uploadedDocuments, `${imported[0]._id.toString()}.jpg`),
path.join(configPaths.uploadedDocuments, `${imported[1]._id.toString()}.jpg`),
path.join(configPaths.uploadedDocuments, `${imported[2]._id.toString()}.jpg`),
path.join(configPaths.uploadedDocuments, `${imported[3]._id.toString()}.jpg`),
path.join(configPaths.uploadedDocuments, `${imported[4]._id.toString()}.jpg`),
path.join(configPaths.uploadedDocuments, `${imported[5]._id.toString()}.jpg`),
]);
await removeTestingZip();
await db.disconnect();
});
afterAll((done) => {
testingDB.disconnect().then(done);
});
afterAll((done) => {
db.disconnect().then(done);
});
afterAll((done) => {
testingDB.disconnect().then(done);
});
afterAll((done) => {
db.disconnect().then(done);
});
afterAll(async () => db.disconnect());
beforeAll(async () => {
afterAll((done) => {
db.disconnect().then(done);
});
afterAll((done) => {
db.disconnect().then(done);
});