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:
parent
ccfaa25e7b
commit
f5a46f8b31
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue