Skip to content

@graphql-tools/mock@8.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Feb 17:17
· 3203 commits to master since this release
179dd27

Major Changes

  • 2492665: Reworked to add state-full behavior to the library:

    • Breaking: mock functions does not receive resolver arguments anymore and can't return promise. Use resolvers option instead.
    • Breaking: when preserved, resolvers will not receive plain object returned by mock anymore as source but rather a Ref that can be used to query the store.
    • Deprecated: MockList is deprecated. Use plain arrays instead.

    See migration guide.