DEV Community

Cover image for Definindo uma cobertura mínima de testes no Jest
Evellyn Lima
Evellyn Lima

Posted on • Edited on

Definindo uma cobertura mínima de testes no Jest

Imagine que você que cobriu o seu fluxo mais importante com testes, sua cobertura ta em 85% e você ta feliz da vida, algum tempo depois esse fluxo sofre algumas mudanças, a cobertura de testes cai e ninguém repara. Como esse é o fluxo mais importante da sua aplicação é importante que ele tenha uma cobertura mínima de testes, e com essas mudanças a cobertura acaba ficando longe de ser boa...

Existe uma configuração no Jest que faz essa validação de cobertura automaticamente. Pra entender como ela funciona e como é configurada é só ler o artigo que eu fiz no meu blog:

http://evellynlima.com.br/definindo-uma-cobertura-minima-de-testes-no-jest/


Links úteis

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay