Tag: Testing

2 entradas encontradas

Jest: Cuando fallar rápido es la estrategia inteligente

Jest: Cuando fallar rápido es la estrategia inteligente

3 min de lectura

Trabajando en proyectos grandes, es habitual tener suites de tests que pueden tardar varios minutos en ejecutarse. Y cuando uno de esos tests falla al principio de la ejecución, es frustrante esperar a que todos los demás se ejecuten para ver el resultado completo.

Jest incluye una funcionalidad que he encontrado muy útil en desarrollo: la opción bail, que permite parar la ejecución de tests después de un número determinado de fallos. Es una de esas características que una vez la conoces y empiezas a usar, no entiendes cómo has vivido sin ella.

Jest: When Failing Fast is the Smart Strategy

Jest: When Failing Fast is the Smart Strategy

3 min de lectura

When working on large projects, it’s common to have test suites that can take several minutes to run. And when one of those tests fails early in the execution, it’s frustrating to wait for all the others to complete just to see the full results.

Jest includes a feature I’ve found very useful in development: the bail option, which allows stopping test execution after a certain number of failures. It’s one of those features that once you know and start using, you don’t understand how you lived without it.