From f5a46f8b31463f2de00e17a909736f06619f2fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dandelion=20Man=C3=A9?= Date: Tue, 4 Jun 2019 02:48:51 +0300 Subject: [PATCH] update_snapshots.sh updates generated flow types (#1176) The generated GitHub GraphQL flow types are a kind of snapshot, and it can be hard to remember/discover how to update them when making changes to schema. Therefore, I've included them in the snapshot update script. Test plan: I used it to update the types, and it worked as intended. --- scripts/update_snapshots.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update_snapshots.sh b/scripts/update_snapshots.sh index b78ee67..14d4952 100755 --- a/scripts/update_snapshots.sh +++ b/scripts/update_snapshots.sh @@ -7,6 +7,8 @@ toplevel="$(git -C "$(dirname "$0")" rev-parse --show-toplevel)" cd "${toplevel}" yarn backend +echo "Updating GitHub graphql flow types" +node ./bin/generateGithubGraphqlFlowTypes.js > src/plugins/github/graphqlTypes.js echo "Updating for sharness/test_load_example_github.t" (cd sharness; UPDATE_SNAPSHOT=1 ./test_load_example_github.t -l) echo "Updating git/loadRepositoryTest.sh"