Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

151
Vistas
Jest Store is Mocked -- Not detecting it?

I have some code I've pulled from another project I had done. I am moving the store here and passing the App as a child component.

Unfortunately I receive this error. I'm not sure why this doesn't work.

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
}

App.test.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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda