Open Maxim-Filimonov opened 1 year ago
I added some extra tests to the reproduction repo.
It looks like it has something to do with pino-pretty
transport configuration.
Looks like it might need separate issue in pact-core. Any thoughts?
First off, thank you SO MUCH for the repo!
Secondly, I'm not hugely surprised that pino is a problem. Probably we should just replace pino with something else. Pact doesn't need a fully functional logger, just something that prints out timestamps, version numbers, and strings.
Thanks Maxim - this is awesome!
Secondly, I'm not hugely surprised that pino is a problem. Probably we should just replace pino with something else. Pact doesn't need a fully functional logger, just something that prints out timestamps, version numbers, and strings.
Exactly. I think this is the best approach to resolve this, albeit if it's a problem with Pino we ought to raise an upstream issue there also. I'll pick that job up when we get to this.
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-1255). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.
See our documentation for more information.
I have been investigating memory leak in our project and found that some of it comes from @pact-foundation/pact at least according to jest.
Software versions
Please provide at least OS and version of pact-js
Issue Checklist
Please confirm the following:
Reproduction repo
Expected behaviour
Jest shouldn’t be detecting leaks when requiring pact-foundation.
Actual behaviour
Jest detect memory leaks when not even using pact - only requiring it
Steps to reproduce
npm install
npm test
See jest reporting leaks: