module GraphQL::Testing::Helpers::SchemaHelpers

def self.for(schema_class)

def self.for(schema_class)
  Module.new do
    include SchemaHelpers
    @@schema_class_for_helpers = schema_class
  end
end

def run_graphql_field(field_path, object, arguments: {}, context: {})

def run_graphql_field(field_path, object, arguments: {}, context: {})
  super(@@schema_class_for_helpers, field_path, object, arguments: arguments, context: context)
end

def with_resolution_context(*args, **kwargs, &block)

def with_resolution_context(*args, **kwargs, &block)
  # schema will be added later
  super(nil, *args, **kwargs, &block)
end