Expose beforeall error

This commit is contained in:
adrinr 2023-01-31 11:48:58 +00:00
parent dd2a05fdcb
commit 9c04ae5f85
1 changed files with 12 additions and 8 deletions

View File

@ -135,6 +135,7 @@ class TestConfiguration {
// SETUP / TEARDOWN
async beforeAll() {
try {
this.#tenantId = `tenant-${utils.newid()}`
// Running tests in parallel causes issues creating the globaldb twice. This ensures the db is properly created before starting
@ -145,6 +146,9 @@ class TestConfiguration {
await this.createTenant1User()
await this.createSession(this.tenant1User!)
})
} catch (e: any) {
throw new Error(e.message)
}
}
async afterAll() {