Expose beforeall error

This commit is contained in:
adrinr 2023-01-31 11:48:58 +00:00
parent 75b306ac17
commit 2be442b7f4
1 changed files with 12 additions and 8 deletions

View File

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