title: "Warning: An invalid container has been provided" in Jest
body: <p>I have following tests:</p>
  
  <pre><code>describe('if initialized', () =&gt; {
    const loadProjects = jest.fn();
    let tree: ReactTestRenderer | null;
    renderer.act(() =&gt; {
      tree = renderer.create(
        &lt;I18nextProvider i18n={i18n}&gt;
          &lt;EstimatesTablePure
            projects={ROWS}
            limit={10}
            loadingProjects={false}
            loadProjects={loadProjects}
          /&gt;
        &lt;/I18nextProvider&gt;,
      );
    });
  
    it('should render content', () =&gt; {
      expect(tree!!.toJSON()).toMatchSnapshot();
    });
  
    it('should call loadProjects', () =&gt; {
      expect(loadProjects).toBeCalledTimes(1);
    });
  
  });
  </code></pre>
  
  <p>and I got following error:</p>
  
  <p><a href="https://i.stack.imgur.com/CXupd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CXupd.png" alt="enter image description here"></a></p>
  
  <p>I was looking for the solution and found that: <a href="https://github.com/mui-org/material-ui/issues/9243" rel="nofollow noreferrer">https://github.com/mui-org/material-ui/issues/9243</a> but still do not have idea how to solve that.</p>