in Jest, snapshots are not automatically written in CI, thus the test will fail if there is no snapshot. It feels like this should work the same otherwise tests are likely to slip by when snapshot names are changed.
After some digging, it looks like Jest uses ci-info. I'm a newbie to Ruby, so I don't know if there's an equivalent gem. (TBH I think CI=true is common enough that it's good enough)
in Jest, snapshots are not automatically written in CI, thus the test will fail if there is no snapshot. It feels like this should work the same otherwise tests are likely to slip by when snapshot names are changed.
https://jestjs.io/docs/snapshot-testing#are-snapshots-written-automatically-on-continuous-integration-ci-systems