Skip to content

More assertions 🥩

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Mar 09:54
· 822 commits to main since this release
6.1.0
2690a59
Mark Type Count Packages
Features 7 documentator, graphql, graphql-printer, testing
Bug Fixes 5 documentator, graphql, graphql-printer, testing
💀 Deprecations 2 graphql, testing

The release introduces more testing assertions and much better docs for them.

Package documentator

Features

  • IncludeDocBlock (include:docblock) will replace inline @see/@link to FQCN if possible (71aa7b6)

Bug Fixes

  • IncludeDocBlock (include:docblock) will include whole docblock by default (00ace46)
  • Preprocessor regexp mode (added u flag) (ea497bb)

Package graphql

Features

  • Added assertGraphQLIntrospectionEquals() assertion (539ba11)
  • Added assertGraphQLSchemaNoBreakingChanges() assertion (ed9bfc1)
  • Added assertGraphQLSchemaNoDangerousChanges() assertion (ee41b8c)
  • Added assertGraphQLSchemaValid() assertion (49941c5)

Bug Fixes

  • The current schema will be pass to assertGraphQLPrintableEquals()/assertGraphQLExportableEquals() when not specified (9c930b2)

Deprecations 💀

  • *:getDirectiveLocations()/*:getLocations(), please use *::locations() instead (224a69a)

Package graphql-printer

Features

  • GraphQLExpected can hold the Schema (that required for export) (a6a316e)

Bug Fixes

  • Printer::process() will not throw DirectiveDefinitionNotFound (same as for a type) (3246647)

Package testing

Features

  • Added ResponseAssertions::assertPsrResponse() assertion (6d42dda)

Bug Fixes

  • ScheduleAssertions::assertScheduled() command class detection (018d177)

Deprecations 💀

  • ResponseAssertions::assertThatResponse(), please use ResponseAssertions::assertPsrResponse() instead (81125e9)