Skip to content

Jest import looses doc.loc.source due to JSON.stringify  #13

@emmanuelbuah

Description

@emmanuelbuah

Per issue laid out in apollographql/graphql-tag#115, stringifying gql DocumentNode loose doc.loc.source property since its not enumerable anymore.

Looking at the code, jest import utilizes stringification which makes it so the returned DocuemntNote encounters errors such as apollographql/graphql-tag#64 when used with graphql-tag.

I'd recommend patching the jest code to apply the same/similar fix in apollographql/graphql-tag#65 to address the issue.

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