Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1784

[ANN] ergonomic MSW bindings for testing graphql-ppx operations

$
0
0

I’ve published an update 0.2.0 for compatibility with MSW 2. The API changes in MSW remove the need for the pipe-able wrapper I created for the initial release; the output is nearly zero-cost now and is nearly identical to what you would write in JavaScript. Additionally, I’ve been able to remove the single (type) dependency on rescript-apollo-client.

Due to the API changes in MSW, the graphql-ppx wrapper has been turned into a module function to create the responses for each operation–you just need to pass it the graphql ppx’s module output. Example here

@zth I’m not sure what the testing landscape looks like for rescript-relay but I’d be interested in supporting relay graphql operations as well


Viewing all articles
Browse latest Browse all 1784

Trending Articles