Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

124
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?

7 months ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos