title: How do I add a mock session for express-session when using SuperTest?
body: <p>I have the following session setup...</p>
  <pre><code>setupSession(){
    const session = {
      secret: process.env.SESSION_SECRET,
      cookie: {},
      resave: false,
      saveUninitialized: false,
    };
    this.app.use(expressSession(session));
  }
  </code></pre>
  <p>I have the following test...</p>
  <pre><code>it(&quot;User should pass&quot;, (done)=&gt;{
    supertest(app)
      .get(&quot;/user&quot;)
      .set('Cookie', ['connect.sid=...'])
      .expect(200)
      .end(function(err, res){
        if (err) done(err);
        done();
      });
  })
  </code></pre>
  <p>I now need to mock out a session in the app to make sure that the login is valid? How do I mock a session in the session store so it thinks it is logged in during supertests?</p>