Skip to content

How to test a field's resolve function in v1.13.25? #5406

@tomwang57

Description

@tomwang57

I am upgrade the graphql gem from 1.8 to the latest version of 1.x(currently is 1.13.25). The current codebase has a lot of test cases to test a single field's resolve function such as:

field = object_type.fields[field_name]
field_value = flyer_field.resolve(object, args, ctx)

But now the resolve function on longer works in v1.13.25. I notice that v2.x has some helper methods for it: https://graphql-ruby.org/testing/helper. But is there something similar in v1.13?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions