- Better error messages for
assert_response_matches
, now showing GraphQL errors if they exist.
- Fix compilation error with Elixir 1.12
- Exports
locals_without_parens
in the.formatter.exs
so people can use these assertions without parentheses if they would like when using the formatter. - Adds a way to pass customer overrides for fields in a document when using
document_for/3
, making it easy to add arguments to a field as needed. - Changes the indenting of strings generated by
document_for/3
to hopefully reduce or eliminate warnings for outdented heredocs.
- Changed the implementation of
assert_lists_equal/3
to make sure that the first argument passed to the comparison function always comes from the first list passed toassert_lists_equal/3
, and likewise that the second argument passed to the comparison function always comes from the second argument passed toassert_lists_equal/3
.
- Fixed bug that caused interfaces with a single implementor to fail when using
document_for/2,3
- Fixed bug that caused applications that don't use Absinthe to fail to compile.
- Fixed bug with interfaces and unions not showing correctly in
Assertions.Absinthe.fields_for/2,3
andAssertions.Absinthe.document_for/2,3
.
- Added
Assertions.AbsintheCase
- Added
Assertions.Absinthe.fields_for/2,3
to generate a list of fields for a type and all sub-types to a given depth of nesting. - Added
Assertions.Absinthe.document_for/2,3
to generate a document with all fields for a type and all sub-types to a given depth of nesting. - Added
Assertions.Absinthe.assert_response_equals/2,3,4
to assert the response of sending a document equals a given expected result. - Added
Assertions.Absinthe.assert_response_matchess/2,3,4
to assert the response of sending a document matches a given pattern.
- Added
assert_raise/1
, which is essentially a less strict version of the builtin assertionsassert_raise/2
andassert_raise/3
.
- We had a bug where
assert_map_in_list/3
would always pass and would never fail when it should have failed, and this is now fixed.
- Added ability to use assertions that raise an error instead of just returning
false
as comparison functions, so assertions can now be composed much more easily.