Open haddasbronfman opened 11 months ago
We also faced this issue
We have discovered the following : For one of our projects, after an upgrade cycle, nyc suddenly started using 8GB which would crash our build pipeline. Investigation showed we had some unnecessary peerDependencies. We removed them and now nyc is running fast and efficient.
We think there must have been some circular dependency
Link to bug demonstration repository
https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main
steps to reproduce:
npm install --ignore-scripts
npx lerna bootstrap --no-ci --hoist --nohoist=‘zone.js’ --nohoist=‘mocha’ --nohoist=‘ts-mocha’
cd plugins/node/opentelemetry-instrumentation-mongodb/
export RUN_MONGODB_TESTS=1
cd plugins/node/opentelemetry-instrumentation-mongodb/examples
and run:npm run docker:start
. this will start mongodb docker.npm run test
Expected Behavior
tests should run
Observed Behavior
tests doesn't run![image](https://github.com/istanbuljs/nyc/assets/85441461/49b1cd0d-ada1-4308-ad1e-f9b76f1b6463)
Troubleshooting steps
NODE_OPTIONS=--max-old-space-size=4096 nyc ts-mocha...
instead ofnyc ts-mocha...