<p dir="auto">Since upgrading from beta 19 to beta 21, our jest tests are failinng due to the following error:</p>
<p dir="auto">TypeError: window.__NEXT_REGISTER_PAGE is not a function</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  at Object.&lt;anonymous&gt; (.next/bundles/pages/__tests__/create.test.js:2:8)
  at handle (node_modules/worker-farm/lib/child/index.js:44:8)
  at process.&lt;anonymous&gt; (node_modules/worker-farm/lib/child/index.js:51:3)
  at emitTwo (events.js:125:13)
  at process.emit (events.js:213:7)"><pre class="notranslate"><code class="notranslate">  at Object.&lt;anonymous&gt; (.next/bundles/pages/__tests__/create.test.js:2:8)
  at handle (node_modules/worker-farm/lib/child/index.js:44:8)
  at process.&lt;anonymous&gt; (node_modules/worker-farm/lib/child/index.js:51:3)
  at emitTwo (events.js:125:13)
  at process.emit (events.js:213:7)
</code></pre></div>

<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>

<p dir="auto">I should not get this error</p>

<h2 dir="auto">Current Behavior</h2>


<p dir="auto">TypeError: window.__NEXT_REGISTER_PAGE is not a function</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  at Object.&lt;anonymous&gt; (.next/bundles/pages/__tests__/create.test.js:2:8)
  at handle (node_modules/worker-farm/lib/child/index.js:44:8)
  at process.&lt;anonymous&gt; (node_modules/worker-farm/lib/child/index.js:51:3)
  at emitTwo (events.js:125:13)
  at process.emit (events.js:213:7)"><pre class="notranslate"><code class="notranslate">  at Object.&lt;anonymous&gt; (.next/bundles/pages/__tests__/create.test.js:2:8)
  at handle (node_modules/worker-farm/lib/child/index.js:44:8)
  at process.&lt;anonymous&gt; (node_modules/worker-farm/lib/child/index.js:51:3)
  at emitTwo (events.js:125:13)
  at process.emit (events.js:213:7)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { shallow, mount } from 'enzyme'
import React from 'react'
import renderer from 'react-test-renderer'

import sinon from 'sinon'

import ConnectedLogoutPage from '../logout.js'
describe('Page: /logout', () =&gt; {
  describe('Snapshot Testing', () =&gt; {
    it('/logout renders&quot;', () =&gt; {
      const component = renderer.create(
        &lt;ConnectedLogoutPage url={{ pathname: '/logout' }} /&gt;
      )
      const tree = component.toJSON()
      expect(tree).toMatchSnapshot()
    })
  })

"><pre class="notranslate"><code class="notranslate">import { shallow, mount } from 'enzyme'
import React from 'react'
import renderer from 'react-test-renderer'

import sinon from 'sinon'

import ConnectedLogoutPage from '../logout.js'
describe('Page: /logout', () =&gt; {
  describe('Snapshot Testing', () =&gt; {
    it('/logout renders"', () =&gt; {
      const component = renderer.create(
        &lt;ConnectedLogoutPage url={{ pathname: '/logout' }} /&gt;
      )
      const tree = component.toJSON()
      expect(tree).toMatchSnapshot()
    })
  })


</code></pre></div>
<h2 dir="auto">Context</h2>


<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.0-beta21</td>
</tr>
<tr>
<td>node</td>
<td>8.2.1</td>
</tr>
<tr>
<td>OS</td>
<td>Mac OS 10.12.4</td>
</tr>
<tr>
<td>browser</td>
<td>command line</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
<p dir="auto">Hi! I am having some trouble getting set up with Redux and Apollo.</p>
<p dir="auto">The existing <code class="notranslate">with-redux-and-apollo</code> example is only compatible with Apollo 1. Apollo 2 severs out-of-the-box support for redux in favor of Apollo's client side state management, but luckily <a href="https://github.com/rportugal/apollo-cache-redux">https://github.com/rportugal/apollo-cache-redux</a> gives you a way to still use redux with Apollo 2. That being said, I'm brand new to Nextjs and setting up the dev environment with Apollo 2 and Redux has been challenging, if anyone has ideas about how to accomplish this please let me know! An updated example would be greatly appreciated :)</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>beta</td>
</tr>
<tr>
<td>node</td>
<td>9.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
</tbody>
</table>