Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests pass in CI if no snapshot is found #32

Open
lilasquared opened this issue Oct 18, 2022 · 1 comment
Open

Tests pass in CI if no snapshot is found #32

lilasquared opened this issue Oct 18, 2022 · 1 comment

Comments

@lilasquared
Copy link

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

@spenserblack
Copy link

spenserblack commented Nov 10, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants