🔧 [Refactor] backend test db setups/teardowns
Created by: Tirokk
Authored by rbeer
⚡ Refactor ticket
Backend tests are slow, because the test DB is often cleared after each test of a suite. Seting up the database only once before and clearing it only after each suite reduces the test time by e.g. 60%.
Motive
Implementation
- fix
before|afterAll
,before|afterEach
blocks in tests
See also
For time logs of the before|afterAll
block executions, see this Travis log