Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
Cómo escribir un caso de prueba unitaria para la instrucción Switch que devuelve el componente en Jest con React Testing Library

Cuando escribí el caso de prueba, pude llegar al caso 0, pero no pude llegar al otro 1

 const tabContent = (isCurrent) => { switch (isCurrent) { case 0: return <Component 1 />; case 1: return <Component 2 />; default: return null; } };

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Luego establezca isCurrent en 1 para ir al primer caso tabContent (1) Cualquier otro valor irá al valor predeterminado

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!