Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuração do Jest #22

Closed
dansenpir opened this issue Jan 27, 2025 · 0 comments · Fixed by #45
Closed

Configuração do Jest #22

dansenpir opened this issue Jan 27, 2025 · 0 comments · Fixed by #45
Assignees

Comments

@dansenpir
Copy link
Member

Descrição: Configurar o Jest para executar testes unitários e de integração, com suporte a diferentes modos de execução.

Detalhes:

  • Criar o arquivo de configuração base do Jest (jest.config.js).
  • Criar os arquivos de configuração estendidos:
    • jest-unit-config.js para testes unitários, com suporte a arquivos .spec.ts.
    • jest-integration-config.js para testes de integração, com suporte a arquivos .test.ts.
  • Adicionar scripts no package.json:
    • test:unit: Executa todos os testes unitários (arquivos .spec.ts).
    • test:integration: Executa todos os testes de integração (arquivos .test.ts).
    • test:unit:watch: Executa testes unitários em modo watch (arquivos .spec.ts).
    • test:integration:watch: Executa testes de integração em modo watch (arquivos .test.ts).
    • test:unit:verbose: Executa testes unitários em modo verbose (arquivos .spec.ts).
    • test:integration:verbose: Executa testes de integração em modo verbose (arquivos .test.ts).
    • test:related: Executa testes relacionados aos arquivos alterados (arquivos .spec.ts e .test.ts).
    • test: Executa todos os testes (unitários e de integração).
@Ramiro-R2D2 Ramiro-R2D2 linked a pull request Jan 29, 2025 that will close this issue
@Ramiro-R2D2 Ramiro-R2D2 linked a pull request Jan 29, 2025 that will close this issue
@Ramiro-R2D2 Ramiro-R2D2 linked a pull request Jan 29, 2025 that will close this issue
This was unlinked from pull requests Jan 30, 2025
@Ramiro-R2D2 Ramiro-R2D2 linked a pull request Jan 31, 2025 that will close this issue
@dansenpir dansenpir self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant