test: Mock bull, fix setInterval capturing memory in tests

Towards #3939
This commit is contained in:
Tom Moor
2022-08-08 13:15:06 +02:00
parent ba385e1507
commit e97cc61e2f
3 changed files with 53 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ if (process.env.DATABASE_URL_TEST) {
// so that sequelize uses the test config variables
require("@server/database/sequelize");
jest.mock("bull");
// This is needed for the relative manual mock to be picked up
jest.mock("../queues");