mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
a54e66e19a
* Lazy queues, correctly closing Redis and server * feedback * fix: Tests not correctly split across matrix
13 lines
516 B
JavaScript
13 lines
516 B
JavaScript
// This file runs before the test environment is set up to ensure mocks are registered early
|
|
// It prevents real Redis clients from being initialized during module imports
|
|
|
|
// Mock ioredis with ioredis-mock before any imports
|
|
jest.mock("ioredis", () => require("ioredis-mock"));
|
|
|
|
// Mock other Redis-dependent modules
|
|
jest.mock("@server/utils/MutexLock");
|
|
jest.mock("@server/utils/CacheHelper");
|
|
|
|
// Mock AWS SDK signature module to prevent aws_logger open handle
|
|
jest.mock("@aws-sdk/signature-v4-crt", () => ({}));
|