mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
63ac02bc07
### What In order to more easily monitor and review changes to metadata resolution, this introduces snapshot testing for both successful and failing calls to `resolve`. I used [Insta](https://insta.rs/) for this. ### How For tests of the failure case, we already had a text file with the expected error, so I have turned those files into snapshot files. I wrote a small script to move the files rather than deleting and recreating them so I could guarantee that the contents have not changed. (Unfortunately, Git's diff doesn't always recognise the move as a move because Insta has added a header.) For tests of the successful case, I added a line to snapshot the metadata rather than discarding it. I also rewrote the tests to use `insta::glob` so we could get rid of `test_each`. V3_GIT_ORIGIN_REV_ID: 41bef4cf77bddb8d20d7c101df52ae149e8b0476 |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |