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

add AcceptChanges helper #4

Merged
merged 1 commit into from
Nov 18, 2024
Merged

add AcceptChanges helper #4

merged 1 commit into from
Nov 18, 2024

Conversation

avigoldman
Copy link

No description provided.

@avigoldman avigoldman merged commit b61e3f4 into main Nov 18, 2024
1 check passed
@avigoldman avigoldman deleted the add-accept-changes-helper branch November 18, 2024 14:53
Copy link

@hownowstephen hownowstephen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that I'm seeing it, I wonder if it could be baked more into the internals actually, since everything comes down to Verify so would it make more sense to have verify run in a report & approve mode? https://github.com/customerio/go-approval-tests/blob/main/approvals.go#L86

return nil
}

// Handle `.received.txt` files

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might just want to look for files ending in .received.<ext> or... is blank .received also valid? since it's a library

if err := os.Rename(path, approvedName); err != nil {
return fmt.Errorf("failed to rename %s to %s: %w", path, approvedName, err)
}
fmt.Printf("Renamed %s to %s\n", path, approvedName)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more like auto-approved

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.

3 participants