mirror of
https://github.com/directus/directus.git
synced 2026-01-31 00:48:16 -05:00
* Fix missing GraphQL variables in HTTP GET requests * Fix GraphQL query request caching - Fix incorrect response when the query contains variables - Added tests for cache keys and cache middleware * Update api/src/utils/get-cache-key.test.ts Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
7 lines
176 B
TypeScript
7 lines
176 B
TypeScript
export const cache = {
|
|
get: jest.fn().mockResolvedValue(undefined),
|
|
set: jest.fn().mockResolvedValue(true),
|
|
};
|
|
|
|
export const getCache = jest.fn().mockReturnValue({ cache });
|