Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/

export default {
preset: "ts-jest",
clearMocks: true,
restoreMocks: true,
testMatch: ["<rootDir>/test/**/*.test.ts"],
testEnvironment: "node",
setupFilesAfterEnv: ["<rootDir>/test/helpers/setup-jest.ts"],
fakeTimers: {
doNotFake: ["nextTick", "setImmediate", "clearImmediate"],
},
};
2 changes: 1 addition & 1 deletion lib/redis/RedisOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type ReconnectOnError = (err: Error) => boolean | 1 | 2;

export interface CommonRedisOptions extends CommanderOptions {
Connector?: ConnectorConstructor;
retryStrategy?: (times: number) => number | void | null;
retryStrategy?: ((times: number) => number | void | null) | null;

/**
* If a command does not return a reply within a set number of milliseconds,
Expand Down
Loading