Skip to main content

sling_gql_test 1.2.0 copy "sling_gql_test: ^1.2.0" to clipboard
sling_gql_test: ^1.2.0 copied to clipboard

Test helpers for sling_gql: an in-memory GraphQL server that answers the client's own documents from plain Dart data, and pumpUntilSettled for widget tests.

1.2.0 #

  • FEAT(sling_gql_test): __typename is inferred at the root of mutations and subscriptions. (fafb9b1c)
  • FEAT(sling_gql_test): MockGraphQLServer(schema:) infers the __typename of object types. (a95a320d)

1.1.1 #

  • FIX(sling_gql_test): a nullable key field the data leaves out gets the object's path. (1d49b0f5)

1.1.0 #

  • FEAT(sling_gql_test): MockGraphQLServer(schema:) fills the fields a test leaves out. (5974b663)

1.0.2 #

  • Update a dependency to the latest release.

1.0.1 #

  • Update a dependency to the latest release.

1.0.0 #

Note: This release has breaking changes.

  • First stable release. Upgrading from 0.x: see Upgrading to 1.0.

  • FEAT(sling_gql_test): MockGraphQLServer.failNext, request headers, GraphQLError(code:). (98fa786a)

  • DOCS(repo): Versioning sections in the adapter, test and generator READMEs (#73). (a3574704)

  • BREAKING REFACTOR(sling_gql_test): rename GraphQLError to MockGraphQLError (#73). (b144a1d8)

  • BREAKING REFACTOR(sling_gql): settle the 1.0 public surface (#73). (0f1e6992)

0.1.1+2 #

  • Update a dependency to the latest release.

0.1.1+1 #

  • Update a dependency to the latest release.

0.1.1 #

  • FEAT(sling_gql_test): inline fragments in MockGraphQLServer. (5009ade1)
  • FEAT(sling_gql_test): MockGraphQLServer(subscription:) with Stream fields. (09ba6e76)
  • FEAT(sling_gql_test): test helpers package (#16). (ff3dd319)

0.1.0 #

Initial release.

  • MockGraphQLServer: in-memory server resolving the client's documents against plain Dart data / resolvers; GraphQLError, request log, latency.
  • pumpUntilSettled / tester.pumpUntilSettled(client) on top of SlingClient.isIdle / whenIdle.
  • useRealNetwork(), disposeAfterTest().
0
likes
160
points
546
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Test helpers for sling_gql: an in-memory GraphQL server that answers the client's own documents from plain Dart data, and pumpUntilSettled for widget tests.

Homepage
Repository (GitHub)
View/report issues

Topics

#graphql #testing #mock

License

MIT (license)

Dependencies

flutter, flutter_test, http, sling_gql

More

Packages that depend on sling_gql_test