Update mock server to 6.0.0
This commit is contained in:
parent
1b04639009
commit
4dd97d4716
3 changed files with 16 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue