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

Add the ability to clearTimeout on the context

Open serle opened this issue 3 years ago • 0 comments

To get tests working in jest without holding onto open handles one needs a way to clear the timeout after tests have run. Susggest that you add a method to the context e.g. context.release = () => clearTimeOut(timer)

serle avatar Jul 21 '22 23:07 serle