Skip to content

Testing with jest #4

Description

@anibal-deboni-gaivota

When I run my tests with jest three of them returns:
Jest has detected the following 3 open handles potentially keeping Jest from exiting

Pointing this part of the code:

       28 |       .use(express.json({ limit: '100mb' }))
       29 |       .use(express.urlencoded({ limit: '100mb', extended: true }))
       30 |       .use(httpContext.middleware({
          |                        ^
      31 |         removeAfterClose: true,
      32 |         removeAfterFinish: true,
      33 |       }))

      at interval (node_modules/http-request-context/index.js:22:3)
      at Object.middleware (node_modules/http-request-context/index.js:119:5)
      at new WebApp (src/infra/web/index.ts:30:24)

Any ideia what am I doing wrong? Already tried to move the middleware to other parts of the express instantiation but the problem remains.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions