Tiene un problema al intentar probar los componentes de formularios redux. Sigo recibiendo un error FormSection must be inside a component decorated with reduxForm() Aquí está el código de prueba.
import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import { reducer as formReducer } from 'redux-form'; import { render, screen, cleanup, fireEvent} from '@testing-library/react' import "@testing-library/jest-dom"; import ContactInformation from '../components/FormSections/ContactInformation' // Create a reducer that includes the form reducer from redux-form const rootReducer = combineReducers({ form: formReducer, }); const store = createStore(rootReducer); const renderContactInformation = () => { render( <Provider store={store}> <ContactInformation /> </Provider>, ) } describe("<ContactInformation />", () => { test('it should render fields', () => { renderContactInformation() const input = screen.getByLabelText("email") console.log(input) } ) })¿Alguna idea? Parece que debería funcionar, pero creo que estoy perdido o tal vez solo me confundí. Cualquier ayuda será muy apreciada.