Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 2.52 KB

CHANGELOG.md

File metadata and controls

70 lines (56 loc) · 2.52 KB

Changelog

0.19.0

Features

  • Better error messages for assert_response_matches, now showing GraphQL errors if they exist.

Bugs

  • Fix compilation error with Elixir 1.12

0.18.0

Features

  • 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.

0.17.0

Features

  • 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 to assert_lists_equal/3, and likewise that the second argument passed to the comparison function always comes from the second argument passed to assert_lists_equal/3.

0.16.3

Bugs

  • Fixed bug that caused interfaces with a single implementor to fail when using document_for/2,3

0.16.2

Bugs

  • Fixed bug that caused applications that don't use Absinthe to fail to compile.

0.16.1

Bugs

  • Fixed bug with interfaces and unions not showing correctly in Assertions.Absinthe.fields_for/2,3 and Assertions.Absinthe.document_for/2,3.

0.16.0

Features

  • 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.

0.15.0

Features

  • Added assert_raise/1, which is essentially a less strict version of the builtin assertions assert_raise/2 and assert_raise/3.

0.14.1

Bugs

  • 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.

Features

0.14.0

Bugs

Features

  • 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.