Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline modifier option to Absinthe.run #1221

Conversation

bernardd
Copy link
Contributor

One of the limitations of testing with Absinthe.run/3 is the inability to add custom pipeline phases. Doing so requires going through the full HTTP stack to test. That means that if there's a custom phase that is critical to your system's operation, it immediately renders Absinthe.run/3 tests unusable.

This change allows the specification of a pipeline modifier callback function which takes the default pipeline and options and returns the pipeline to be used in the tests.

@bernardd bernardd force-pushed the run_pipeline_config branch from 3354a3f to c1a8377 Compare January 12, 2023 01:53
Copy link
Contributor

@benwilson512 benwilson512 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea, thanks!

@benwilson512 benwilson512 merged commit b6e9d28 into absinthe-graphql:master Feb 1, 2023
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