mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 18:21:40 -05:00
8 lines
367 B
TypeScript
8 lines
367 B
TypeScript
// use mock implementations for underlying databases
|
|
jest.mock('redis', () => require('redis-mock'));
|
|
jest.useFakeTimers(); // mocks out setTimeout that is used in redis-mock
|
|
|
|
import { RedisCache } from '../src/index';
|
|
import { testKeyValueCache } from '../../apollo-server-caching/src/__tests__/testsuite';
|
|
|
|
testKeyValueCache(new RedisCache({ host: 'localhost' }));
|