Skip to content

refactor(snapshots): Group preview options under a previews sub-extension#1167

Merged
runningcode merged 3 commits intomainfrom
no/snapshots-previews-subextension
Apr 23, 2026
Merged

refactor(snapshots): Group preview options under a previews sub-extension#1167
runningcode merged 3 commits intomainfrom
no/snapshots-previews-subextension

Conversation

@runningcode
Copy link
Copy Markdown
Contributor

@runningcode runningcode commented Apr 23, 2026

Summary

  • Reshape the experimental sentry.snapshots { } DSL so preview scanning and test generation now live under a nested previews { } block. generateSnapshotTests becomes previews.generateTests; includePrivatePreviews, theme, and packageTrees move under previews.

Before

sentry {
  snapshots {
    enabled = true
    generateSnapshotTests = true
    includePrivatePreviews = false
    theme = "AppTheme"
    packageTrees = listOf("com.example.ui")
  }
}

After

sentry {
  snapshots {
    enabled = true
    previews {
      generateTests = true
      includePrivatePreviews = false
      theme = "AppTheme"
      packageTrees = listOf("com.example.ui")
    }
  }
}

#skip-changelog

🤖 Generated with Claude Code

…sion

Reshape the experimental `sentry.snapshots { }` DSL so preview scanning
and test generation options live under a nested `previews { }` block.
`generateSnapshotTests` becomes `previews.generateTests`, and
`includePrivatePreviews` and `theme` move under `previews`. Drop the
top-level `packageTrees` DSL option and switch the generator to
`.scanAllPackages()` so the generated test covers every package without
requiring user configuration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
runningcode and others added 2 commits April 23, 2026 14:13
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Restore the packageTrees DSL option under the new `previews { }` block.
The generator emits `.scanPackageTrees(...)` again and falls back to the
Android namespace when the list is empty.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2cfd67f. Configure here.

@runningcode runningcode merged commit 055f0a6 into main Apr 23, 2026
19 of 21 checks passed
@runningcode runningcode deleted the no/snapshots-previews-subextension branch April 23, 2026 15:13
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.

2 participants