We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9afd43 commit ad68e15Copy full SHA for ad68e15
src/cache.spec.js
@@ -12,6 +12,15 @@ describe('cache()', () => {
12
};
13
});
14
15
+ describe('errors', () => {
16
+ it('throws when no resolverCache is configured', () => {
17
+ const resolver = cache(() => {});
18
+ expect(() =>
19
+ resolver(parent, args, { resolverCache: undefined })
20
+ ).toThrowErrorMatchingSnapshot();
21
+ });
22
23
+
24
describe('hashing', () => {
25
it('hashes the root and arguments consistently', () => {
26
const resolver = cache(() => {});
0 commit comments