With curl I can send GET-requests with url-encoded parameters as follows:
curl -G http://example.com --data-urlencode "key=val"
How do I do this with supertest / superagent? So far I've tried things like
const response = await request(app)
.get('/')
.type('application/x-www-form-urlencoded')
.send({ key: 'val' });