{"library":"jest-redis","type":"library","category":null,"description":"A Jest preset that automatically starts an in-memory Redis server for testing using redis-memory-server. As of v0.1.0, it sets up a global Redis instance, provides process.env.REDIS_URL or global.__REDIS_URL__, and supports custom server options, shared databases across workers, and Jest watch mode. Key differentiator: seamless integration with Jest's test lifecycle, eliminating manual server setup/teardown. Release cadence: initial release, no updates since June 2019.","language":"javascript","status":"maintenance","version":"0.1.0","tags":["javascript","redis","cache","cache-manager","jest","jest preset","jest environment"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install jest-redis","imports":["module.exports = { preset: 'jest-redis' }","const client = new Redis(global.__REDIS_URL__)","module.exports = { redisMemoryServerOptions: ..., useSharedDBForAllJestWorkers: false, redisURLEnvName: 'REDIS_URL' }"]},{"cmd":"yarn add jest-redis","imports":[]},{"cmd":"pnpm add jest-redis","imports":[]}],"homepage":"https://github.com/elonsalfati/jest-redis","github":"https://github.com/elonsalfati/jest-redis","docs":null,"changelog":null,"pypi":null,"npm":"jest-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}