ok.github.io/jest/">Jest</a> for testing, but you can use any library or framework that you prefer. We have to make a small change in our main <code>index.js</code>: we export the return value from server():</p>
<pre><code class="language-js">// ...
module.exports = server(home, api);
</code></pre>
<p>Then we can import it from the integration tests. Let&#39;s create a <code>test.js</code>:</p>
<pre><code class="language-js">// test.js
const run = require(&#39;server/test/run&#39;);
const server = require(&