test: ensure testSetup.cleanup is called

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-03-04 13:13:46 +01:00
parent f0e6f6150d
commit a6734cc58f
14 changed files with 55 additions and 28 deletions

View file

@ -38,6 +38,10 @@ describe('Auth', () => {
password = 'test_password';
});
afterAll(async () => {
await testSetup.cleanup();
});
describe('POST /auth/local', () => {
it('works', async () => {
const registrationDto: RegisterDto = {