Skip to content

Comments

Format fixture snapshots as markdown#209

Merged
captbaritone merged 6 commits intomainfrom
markdown-snapshots
Dec 10, 2025
Merged

Format fixture snapshots as markdown#209
captbaritone merged 6 commits intomainfrom
markdown-snapshots

Conversation

@captbaritone
Copy link
Owner

@captbaritone captbaritone commented Dec 10, 2025

Grats tests multiple types of output, sometimes more than one for each test:

  1. Error messages
  2. Fixes
  3. GraphQL SDL
  4. TypeScript
  5. JSON query responses
  6. JSON config objects

Previously, for each test we would concatenate the input and various outputs into a single .expected file with simple headers to denote each output type.

This would sometimes make understanding this output a little tricky since GitHub/VSCode/etc could not apply syntax highlighting. By switching to Markdown as our snapshot serialization format, we can use proper headings and code fences to denote code, which allows VSCode and GitHub to apply syntax highlighting making the output easier to understand. Snapshots can also now be viewed in "Preview" mode for even easier review.

fluent

@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for grats ready!

Name Link
🔨 Latest commit e32a86a
🔍 Latest deploy log https://app.netlify.com/projects/grats/deploys/6939a1b0fab34d00089e7a3c
😎 Deploy Preview https://deploy-preview-209--grats.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@captbaritone captbaritone merged commit f86c04d into main Dec 10, 2025
14 checks passed
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