I'm refactoring some code in my project passing the class component to funcional component. And got some error in my test.
I have a component called "MenuWeb" where I'm using now redux hooks.
That's the test code
describe('Testing MenuWeb', () => {
it('should render Menu Web correctly', () => {
const wrapper = shallow(<MenuWeb store={store} />)
expect(wrapper).toMatchSnapshot()
})
And that's the error that i'm getting:
I know that enzyme don't support hooks, but i don't know how to refactor this test using now react testing library. I tried to wrap with a provider as the message says, but it didnt work, or i'm doing something wrong.
