- (PR #6) New matchers for interfaces:
expect(...).to implement(interface)
(Thanks to @marcgreenstock).
- (PR #4) New matchers for mutations:
have_an_input_field
andhave_a_return_field
(Thanks to @aaronklaassen).
- Improvements on error messages of have_a_field(...).of_type(...)
- Fixed a bug preventing proper type checking when using matchers in the form have_a_field(fname).of_type(types.X). The bug would not happen when providing the type expectation as a string, only when using the GraphQL constants.
- New matcher have_field(field_name).of_type(type) for testing types and their fields
- New matcher be_of_type for testing fields
- New matcher accept_arguments for testing fields