Files
omnivore/packages/api/test/global-teardown.ts
Hongbo Wu a04e91472d fix a bug of using article as table name in the reminders query (#34)
* fix a bug of using article as table name in the reminders query

* fix test

* increase timeout value

* increase timeout value to 50000

* add import mocha

* add import mocha for label test

* add import mocha for every test

* fix test in deleting labels

* add timeout for each label test

* one more test

* fix reminders router by allowing sendrid template id to be null

* do not retry if reminders not found
2022-02-14 13:59:04 +08:00

7 lines
162 B
TypeScript

import { getConnection } from 'typeorm'
export const mochaGlobalTeardown = async () => {
await getConnection().close()
console.log('db connection closed')
}