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.
This commit is contained in:
Dandelion Mané 2019-06-04 02:48:51 +03:00 committed by GitHub
parent ccfaa25e7b
commit f5a46f8b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ toplevel="$(git -C "$(dirname "$0")" rev-parse --show-toplevel)"
cd "${toplevel}" cd "${toplevel}"
yarn backend 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" echo "Updating for sharness/test_load_example_github.t"
(cd sharness; UPDATE_SNAPSHOT=1 ./test_load_example_github.t -l) (cd sharness; UPDATE_SNAPSHOT=1 ./test_load_example_github.t -l)
echo "Updating git/loadRepositoryTest.sh" echo "Updating git/loadRepositoryTest.sh"