Skip to content

Commit

Permalink
fix opts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
richardguerre committed Jul 31, 2021
1 parent e987fd3 commit d499acc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ export function createRelayMockEnvironmentHook(
...globalOptions?.data,
...options?.data,
},
generatorOptions: {
...globalOptions?.generatorOptions,
...options?.generatorOptions,
},
customResolvers: {
...globalOptions?.customResolvers,
...options?.customResolvers,
},
};

const environment = useMemo(() => createMockEnvironment(), []);
Expand Down

0 comments on commit d499acc

Please sign in to comment.