Guard GraphQL schema changes
Currently there is src/generated-schema.graphql
.
As I developer I want to be explicitly warned if I make schema changes unintentionally.
-
Move it to the root folder so that users coming to our repository see it asap. -
Creates npm script to regenerate it. -
Create a test (inside tests/integration/common
) that generates another schema then compares them and fails if they are not the same.
Edited by Peter Smolinský