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

150
Views
Se burla de Jest Store: ¿no lo detecta?

Tengo un código que saqué de otro proyecto que había hecho. Muevo la tienda aquí y paso la aplicación como un componente secundario.

Lamentablemente recibo este error. No estoy seguro de por qué esto no funciona.

 could not find react-redux context value; please ensure the component is wrapped in a <Provider> 29 | 30 | function App() { > 31 | const { userData } = useSelector(state => state.user)

utils.js

 import { Provider } from 'react-redux' import store from "../redux/store" const ReduxProvider = ({ children }) => ( <Provider store={store}>{children}</Provider> ) export { ReduxProvider }

Aplicación.prueba.js

 import { render } from '@testing-library/react'; import { ReduxProvider } from './utils' import App from '../App'; test('renders', () => { render( <ReduxProvider> <App /> </ReduxProvider> ); });
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!