Verify Email Snapshots
Snapshot tests that catch email template regressions by comparing rendered HTML against an approved baseline using Verify.
- CCM score
- 67 of 100
- skills.sh installs
- 464
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers snapshot testing of rendered email HTML, including review of diffs when templates change
- Includes C# examples for basic template tests, per-variant test classes, scrubbing dynamic values, and composer output
- Enforces a missing-baseline failure in CI via
ThrowOnMissingVerifiedFile()to prevent accidental acceptance - Designed for .NET teams testing MJML templates, linked to the MJML authoring and Mailpit integration skills
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill verify-email-snapshots -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Snapshot Testing Email Templates with Verify
When to Use This Skill
Use this skill when:
- Testing email template rendering for regressions
- Validating MJML templates compile to expected HTML
- Reviewing email changes in code review (diffs are visual)
- Ensuring variable substitution works correctly
Related skills:
aspnetcore/mjml-email-templates- MJML template authoringaspire/mailpit-integration- Test email delivery locallytesting/snapshot-testing- General Verify patterns
Why Snapshot Test Emails?
Email templates are:
- Visual - Small changes can break rendering across clients
- Hard to unit test - Output is complex HTML, not simple values
- Prone to regression - Template changes can have unintended effects
Snapshot testing captures the rendered HTML and fails when it changes unexpectedly.
Installation
dotnet add package Verify.Xunit # or Verify.NUnit, Verify.MSTest
Basic Email Snapshot Test
[Fact]
public async Task UserSignupInvitation_RendersCorrectly()
{
// Arrange
var renderer = _services.GetRequiredService<IMjmlTemplateRenderer>();
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- Testing & QA, .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the verify-email-snapshots skill do?
It snapshot tests email templates using Verify, so rendered HTML is compared against an approved baseline and regressions are caught. It works with MJML templates and any email renderer. Failing tests show a diff that you can review before accepting the change.
Which skills are near verify-email-snapshots in the Testing and QA category?
Other skills in the Testing and QA category include tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. This skill is narrower, focused on snapshot testing rendered email HTML with Verify. It fits .NET projects that send templated emails.
How do I install verify-email-snapshots?
Run npx -y skills add aaronontheweb/dotnet-skills --skill verify-email-snapshots -y in your project. The skill needs the Verify.Xunit, Verify.NUnit or Verify.MSTest package added to a .NET project. Once installed, the agent can write and review HTML snapshot tests for your email templates.
Does verify-email-snapshots work with MJML email templates?
Yes, the skill covers MJML templates and shows tests that render them and compare the output to a verified HTML file. It also explains scrubbing dates, GUIDs and tokens so unstable values do not cause false failures. It is listed alongside the mjml-email-templates skill in the same repository.
More from aaronontheweb/dotnet-skills
All 34- Akka Hosting Actor Patterns460
- Akka Net Testing Patterns457
- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.7K
- Database Performance741
- Dependency Injection Patterns741
- Dotnet Project Structure731
- Api Design723
- Type Design Performance723
- Ilspy Decompile695
- Package Management644
- Microsoft Extensions Configuration643
- Serialization630
- Testcontainers Integration Tests629
- Dotnet Slopwatch618
- Crap Analysis610
- Playwright Blazor Testing589
- Dotnet Local Tools579
- Aspire Integration Testing552
- Mjml Email Templates541
Similar to Verify Email Snapshots
More Testing & QAsnapshot-testingSkillaaronontheweb/dotnet-skills515 installsSnapshot testing in .NET with Verify that approves outputs through human-reviewed baseline files.
mailpit-integrationSkillaaronontheweb/dotnet-skills471 installsLocal email testing with Mailpit in .NET Aspire that captures outgoing mail without delivering it.
email-testingPluginhyper-elements/hyper-elements519 starsPreview and check any email, a Hyper Elements template or HTML from anywhere, in Outlook, Gmail, Apple Mail, Yahoo Mail, AOL Mail and other email clients, local
template-validationSkilldotnet/skills4.8K installsValidates custom dotnet new templates before publishing to catch silent failures and authoring mistakes.
email-html-mjmlSkillframix-team/skill-email-html-mjml1.1K installsResponsive MJML 5.x email template generator that compiles to cross-client HTML within Gmail's clip limit.
emailmdMCP serveranypost1.4K starsRender markdown into email-safe HTML with lint and docs access for deliverability checks.