Formateadores y código
Previsualizador de Snapshot Tests
Side-by-side diff for any two snapshot strings.
- <div class="card">- <h2>Old title</h2>+ <div class="card highlighted">+ <h2>New title</h2><p>First paragraph.</p>+ <p>Plus a fresh line.</p></div>
Nota del editor
Understanding · Capture the output, diff on every run.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
Quick answers.
›What format should the snapshots be in?
The tool accepts plain text, JSON, or serialised markup commonly produced by testing frameworks like Jest or Vitest.
›Is my test data safe?
Yes. The diffing logic runs locally in your browser memory and no snapshot content is uploaded to any server.
›How does the side-by-side diff work?
The tool calculates line-level changes and highlights additions in green and removals in red across two distinct panels.
›Can I use this for non-test files?
Whilst designed for snapshot testing output, the tool functions as a general-purpose text diffing utility for any two strings.
La gente también busca
Herramientas relacionadas
More in this room.
- Generador de Casos de Prueba JestEstructura bloques describe/it a partir de un nombre de componente o función.
- Generador de Pruebas Playwright / CypressBoilerplate de pruebas E2E para cualquier framework.
- Generador de Contratos PactEspecificaciones de contratos para consumidor + proveedor.
- Ejecutor de Pruebas de Accesibilidad (axe-core)Conjunto completo de reglas axe-core contra HTML pegado.
- Conversor de JSON a XMLConvierte JSON a XML limpio y bien formado.
- Formateador y Validador de JSONEmbellece, minifica y valida JSON — gratis, sin registrarse.