test: Update jest configuration (#3951)

* Split shared tests

* Centralize and parallelize jest config

* ci
This commit is contained in:
Tom Moor
2022-08-10 21:26:36 +01:00
committed by GitHub
parent e5c5e8907a
commit 593cf73118
11 changed files with 116 additions and 170 deletions

View File

@@ -22,6 +22,9 @@ jest.mock("bull");
// This is needed for the relative manual mock to be picked up
jest.mock("../queues");
// Avoid "Yjs was already imported" errors in the test environment
jest.mock("yjs");
// We never want to make real S3 requests in test environment
jest.mock("aws-sdk", () => {
const mS3 = {