{"id":28319829,"url":"https://github.com/chauchakching/jest-heap-graph","last_synced_at":"2025-07-07T05:06:30.138Z","repository":{"id":47169924,"uuid":"404973634","full_name":"chauchakching/jest-heap-graph","owner":"chauchakching","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-26T10:06:57.000Z","size":139,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T18:24:37.133Z","etag":null,"topics":["cli","debug","graph","jest","memory","oom"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chauchakching.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-10T06:03:40.000Z","updated_at":"2023-03-10T14:55:12.000Z","dependencies_parsed_at":"2022-09-19T15:21:55.880Z","dependency_job_id":null,"html_url":"https://github.com/chauchakching/jest-heap-graph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/chauchakching/jest-heap-graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chauchakching%2Fjest-heap-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chauchakching%2Fjest-heap-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chauchakching%2Fjest-heap-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chauchakching%2Fjest-heap-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chauchakching","download_url":"https://codeload.github.com/chauchakching/jest-heap-graph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chauchakching%2Fjest-heap-graph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261436464,"owners_count":23157694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","debug","graph","jest","memory","oom"],"created_at":"2025-05-25T10:07:49.799Z","updated_at":"2025-07-07T05:06:30.124Z","avatar_url":"https://github.com/chauchakching.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-heap-graph\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/jest-heap-graph.svg)](https://npmjs.org/package/jest-heap-graph)\n[![Downloads/week](https://img.shields.io/npm/dw/jest-heap-graph.svg)](https://npmjs.org/package/jest-heap-graph)\n[![License](https://img.shields.io/npm/l/jest-heap-graph.svg)](https://github.com/chauchakching/jest-heap-graph/blob/master/package.json)\n\nCommand line tool to plot jest tests heap usage graph. \n\nHelp you observe the memory usage and find the root cause of memory leak.\n\nThe tool run your command, extract the `stderr` and plot graph using [ink](https://github.com/vadimdemedes/ink) and [asciichart](https://github.com/kroitor/asciichart)\n\n# Getting started\n\nPut your command that run jest tests as the first argument.\n\n```bash\n# install cli globally\n\u003e npm install -g jest-heap-graph\n\n# or use npx to run it directly\n\u003e npx jest-heap-graph \"yarn jest --logHeapUsage\"\n\n# check CLI usage\n\u003e jest-heap-graph -h\n\n# run the globally installed cli\n\u003e jest-heap-graph \"yarn jest --logHeapUsage\"\nPASS src/test/dummy-113..test.js (1929 MB heap size)\nPASS src/test/dummy-114.test.js (1940 MB heap size)\nPASS src/test/dummy-115.test.js (1959 MB heap size)\n\nTest Suites: 115 passed, 115 total\nTests:       115 passed, 115 total\nSnapshots:   0 total\nTime:        30.371 s, estimated 31 s\nRan all test suites.\n\n--- n: 115 ---\n    1959.00 ┤                                                                                        ╭\n    1902.30 ┤                                                                                   ╭────╯\n    1845.60 ┤                                                                         ╭╮   ╭────╯\n    1788.90 ┤                                                                       ╭╮│╰───╯\n    1732.20 ┤                                                                  ╭╮ ╭─╯╰╯\n    1675.50 ┤                                                              ╭╮╭─╯╰─╯\n    1618.80 ┤                                               ╭╮        ╭╮╭╮ │╰╯\n    1562.10 ┤                                               ││     ╭╮ │╰╯╰─╯\n    1505.40 ┤                                     ╭╮  ╭╮ ╭╮╭╯│╭╮ ╭─╯╰─╯\n    1448.70 ┤                                     ││ ╭╯│╭╯╰╯ ╰╯╰─╯\n    1392.00 ┤                               ╭╮   ╭╯│╭╯ ││\n    1335.30 ┤                           ╭╮ ╭╯│ ╭─╯ ││  ╰╯\n    1278.60 ┤                           ││ │ │╭╯   ╰╯\n    1221.90 ┤                    ╭╮    ╭╯│╭╯ ╰╯\n    1165.20 ┤                ╭╮ ╭╯│╭╮╭─╯ ╰╯\n    1108.50 ┤        ╭╮  ╭╮ ╭╯│╭╯ ││╰╯\n    1051.80 ┤    ╭╮  ││ ╭╯│╭╯ ││  ╰╯\n     995.10 ┤╭╮  ││ ╭╯│╭╯ ││  ╰╯\n     938.40 ┤││ ╭╯│╭╯ ╰╯  ╰╯\n     881.70 ┼╯│╭╯ ╰╯\n     825.00 ┤ ╰╯\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchauchakching%2Fjest-heap-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchauchakching%2Fjest-heap-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchauchakching%2Fjest-heap-graph/lists"}