aws-lambda-mock-context icon indicating copy to clipboard operation
aws-lambda-mock-context copied to clipboard

Clears timeout on calling done()

Open sinan-guclu-pupil opened this issue 6 years ago • 2 comments

Aims to prevent this situation from occurring when running within a Jest test, I assume as a result of the timeout executing after the done() callback is called:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:
    > 76 |     mockContext = AWSMockLambdaContext({
         |                                       ^
      77 |       timeout: 3
      78 |     });
      79 | 

      at Object.<anonymous>.module.exports.options [as default] (node_modules/aws-lambda-mock-context/index.js:66:2)

sinan-guclu-pupil avatar Aug 15 '19 13:08 sinan-guclu-pupil

Also having this issue. Any update on this pull request?

brian-moore avatar Feb 18 '20 16:02 brian-moore

Hello, any news on this ? Thanks.

tianalemesle avatar Dec 10 '20 13:12 tianalemesle