Update mock server to 6.0.0

This commit is contained in:
Fedor Indutny 2024-02-28 19:27:22 -08:00 committed by GitHub
parent 1b04639009
commit 4dd97d4716
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 10 deletions

View file

@ -16,10 +16,16 @@ export async function mochaGlobalSetup(): Promise<void> {
debug('Launching app before running all tests');
const bootstrap = new Bootstrap();
await bootstrap.init();
const app = await bootstrap.link();
debug('Closing app before running all tests');
await app.close();
await bootstrap.teardown();
debug('Done');
try {
const app = await bootstrap.link();
debug('Closing app before running all tests');
await app.close();
await bootstrap.teardown();
debug('Done');
} catch (error) {
await bootstrap.saveLogs();
throw error;
}
}