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

309
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'pop') Error de prueba de JS

Hola, estoy tratando de probar mi proyecto de JavaScript y estoy tratando de probar para asegurarme de que este botón funcione en el código y recibo este error en el que no puedo encontrar ninguna respuesta. No puedo entender por qué leer pop no está definido

Mensaje de error

 TypeError: Cannot read properties of undefined (reading 'pop') 30 | </TopContainer> 31 | <NavContainer > > 32 | <BackLogoButton id="backButton" onPress={() => navigation.pop(1)}> | ^ 33 | <BackLogo source={require('./../assets/back-logo.png')}/> 34 | </BackLogoButton> 35 | </NavContainer>

Código de prueba

 describe('Tests the BackLogoButton in Tutorial pages', () => { it('BackLogoButton is pressable', () => { const onPressEvent = jest.fn(); const wrapper = shallow(<BackLogoButton onPress={onPressEvent}/>); onPressEvent.mockReturnValue(''); wrapper.find('#backButton').first().props().onPress(); expect(onPressEvent.mock.calls.length).toBe(0); }); });
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!