Presently, here is my code snippet:
const MyComponent = () => (
<Provider store={storeRedux}>
<BrowserRouter>
<Context.Provider value={...}}>
<Mode { ...props } />
</Context.Provider>
</BrowserRouter>
</Provider>
);
The above code runs without errors, however there's a warning in the following section:
describe('Test Parent', () => {
let wrapper;
beforeEach(() => {
wrapper = mount(<MyComponent />);
});
afterEach(() => {
wrapper.unmount();
});
})
//Variable 'wrapper' implicitly has type 'any' in some locations where its type cannot be determined.ts(7034)
Although the test functions as expected, is there any workaround to eliminate this warning message?