forwardemail / forwardemail/supertest

Is it possible to add directly to the request with supertest?

Open
#692 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

In my project we use passport for authentication, and doing so allows us to access the account of the user making the request by saying `req.account`. Is there a way in supertest that the same functionality can be achieved, so that an `account` object can be appended to the request and read in the route for testing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.