Skip to content

(feature) Allow providing seed to addMocksToSchema for deterministic results #2272

@ryan-m-walker

Description

@ryan-m-walker

While looking through the code in the mocks package I noticed this TODO comment about allowing passing a seed so that results could be more deterministic (https://github.com/ardatan/graphql-tools/blob/master/packages/mock/src/mocking.ts#L73-L75) . I would find this feature very useful for testing as well as other use cases. If you would like I would be willing to open a PR if you think it would be useful for other people as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions