You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new LDS GraphQL wire adapter emits data in the shape { data: ..., errors: [ ... ] }. This prevents component authors from using createLDSTestWireAdapter, which assumes the standard LDS { data: ..., error: ... } shape for emitted values.
Proposal is to create a new createGraphQLTestWireAdapter function & corresponding class in src/adapters that understands both the different shape & the special format of GraphQL errors and provides utility methods for constructing values to emit.
The alternative is to have test authors use createTestWireAdapter and create the GraphQL shapes themselves.
The text was updated successfully, but these errors were encountered:
The new LDS GraphQL wire adapter emits data in the shape
{ data: ..., errors: [ ... ] }
. This prevents component authors from usingcreateLDSTestWireAdapter
, which assumes the standard LDS{ data: ..., error: ... }
shape for emitted values.Proposal is to create a new
createGraphQLTestWireAdapter
function & corresponding class insrc/adapters
that understands both the different shape & the special format of GraphQL errors and provides utility methods for constructing values to emit.The alternative is to have test authors use
createTestWireAdapter
and create the GraphQL shapes themselves.The text was updated successfully, but these errors were encountered: