• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

176
Vistas
How do I mock for all tests? jest.config.js or __mocks__?

To mock a function for all tests in all suites, where do I put that code, and how is it written? Do I put it in a _ mocks _ folder, or inside jest.config.js?

Depending on where you're reading, different documentation says to do it different ways. Also, when one is mentioned, the other is not, so I cannot compare.

Can someone tell me once and for all?

about 3 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda