Skip to content

--logHeapUsage not logging heap usage #4167

Description

@eddiemoore

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Running jest with --logHeapUsage is not logging the heap usage.
Tried on CircleCI, and on local and on colleagues computer. All don't log the heap usage.
Trying to run on a huge codebase with a few thousand tests and the CI keeps running out of memory. Trying to narrow down which file may the the issue with logging the heap.

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.

Example simplified repo:
https://github.com/eddiemoore/jest-test
Tried with these commands:
node --expose-gc ./node_modules/jest-cli/bin/jest.js --runInBand --logHeapUsage
node --expose-gc ./node_modules/jest-cli/bin/jest.js --no-cache --runInBand --logHeapUsage
node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage
All of which aren't logging the heap.

What is the expected behavior?
Expecting jest to output the heap usage.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest config file: https://github.com/eddiemoore/jest-test/blob/master/jest.config.js
Jest: 20.0.4
node: 6.10.3
npm: 3.10.10
yarn: 0.27.5
OS: Mac OSX 10.12.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions