Also create a proxy for executeWithSource in RelayModernMockEnvironment
@@ -447,6 +447,7 @@ function createMockEnvironment(
env: IEnvironment,
fn:
| $PropertyType<IEnvironment, 'execute'>
+ | $PropertyType<IEnvironment, 'executeWithSource'>
| $PropertyType<IEnvironment, 'executeMutation'>,
) => {
return (...argumentsList) => {
@@ -459,6 +460,11 @@ function createMockEnvironment(
// $FlowExpectedError
environment.execute = createExecuteProxy(environment, environment.execute);
// $FlowExpectedError
+ environment.executeWithSource = createExecuteProxy(
+ environment,
+ environment.executeWithSource,
+ );
+ // $FlowExpectedError
environment.executeMutation = createExecuteProxy(
environment,
environment.executeMutation,
