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

Make record option optional to support environment variable #13

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

tahirmt
Copy link
Owner

@tahirmt tahirmt commented Oct 12, 2024

swift-snapshot-testing supports SNAPSHOT_TESTING_RECORD environment variable since 1.17.0 and if using this library this feature was not working because record would be passed in as false by default.

Changing default value to nil to make sure if the environment variable is passed, it is used.

@tahirmt tahirmt merged commit bcf85c6 into main Oct 12, 2024
1 check passed
@tahirmt tahirmt deleted the support-global-environment-variable branch October 12, 2024 02:36
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

Successfully merging this pull request may close these issues.

1 participant