testkit addPlugin behavior does not match envelop's #2185
Labels
kind/bug
Something isn't working
stage/0-issue-prerequisites
Needs more information before we can start working on it
stage/2-failing-test
A failing test was created that describes the issue
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
minimal reproduction available on
Stackblitz.
@envelop/*
packages that you are using.Describe the bug
addPlugin
behavior differs forcreateTestkit
vs passing plugins intographql-yoga
'screateYoga
To Reproduce Steps to reproduce the behavior:
Expected behavior
test kit flow call order should match yoga server / envelop server.
In both cases for the example above, the result should include the trace data.
Environment:
@envelop/*
versions:@envelop/core
:5.0.0
graphql-yoga
:5.1.1
envelop/testing
:7.0.0
Additional context
If instead of implementing onExecute, I use
addPlugin
to add the same logic, it calls in the expected order from the testkitThe text was updated successfully, but these errors were encountered: