Nest: Middleware use in createTestingModule function (e2e)

Created on 29 Dec 2018  路  3Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ ] Bug report
[X] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior


Hi!
Can anybody advise how to use middlewares in e2e tests using "createTestingModule" ?
From what I found there is no way to do it using test helper so i am submiting this as a feature request.

Thanks,

Environment


Nest version: 5.Y.Z

For Tooling issues:

  • Node version: 8.X
  • Platform: Mac, Linux, Windows
needs clarification question 馃檶

Most helpful comment

All 3 comments

I'm not sure what this question is about. What exactly would you like to achieve? You can normally set up middleware inside a module class - they will be registered once you create a nest application using the testing module.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrunnerLivio picture BrunnerLivio  路  44Comments

chaostheory picture chaostheory  路  34Comments

szkumorowski picture szkumorowski  路  62Comments

kamilmysliwiec picture kamilmysliwiec  路  178Comments

ZenSoftware picture ZenSoftware  路  35Comments