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

229
Views
Cómo escribir una prueba unitaria con Jest, Fastdom y Preact

Estoy trabajando en un proyecto que usa fastdom, typescript y preact, y @testing-library/preact. Pero cuando trato de escribir una prueba, se queja de que fastdom no está definido.

Mi pregunta es ¿cómo funciona Fastdom y la biblioteca de pruebas previas? Supongo que solo ejecuta ese componente que renderizo, pero no parece ser el caso.

aquí está mi código

 // SearchResult.test.tsx import SearchResult from '##/components/SearchResult'; describe('Search Result', () => { it('should start with a blank screen', () => { render(<SearchResult isLoading={false} />); expect(screen.children.length).toEqual(0); }); });

Mensaje de error: ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
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!