Skip to content

make GraphQLError error field exported to be usable in tests#2

Open
jipperinbham wants to merge 1 commit intomasterfrom
jp/expose-gql-error
Open

make GraphQLError error field exported to be usable in tests#2
jipperinbham wants to merge 1 commit intomasterfrom
jp/expose-gql-error

Conversation

@jipperinbham
Copy link
Copy Markdown

@jipperinbham jipperinbham commented May 12, 2022

Currently, it's not possible to create an instance of GraphQLError in a dependent package for testing such that it can utilize the helper functions (i.e. IsUnauthorizedError) because the error field is not accessible. With this change, packages that depend on this module can create an instance of GraphQLError to be able to assert specific error conditions.

@jipperinbham jipperinbham requested a review from jphenow May 12, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants