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> ); });