npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jest-markdown-expand-reporter

v0.1.2-beta

Published

A markdown reporter for Jest tests with expandable sections containing per test console logs

Readme

jest-markdown-expand-reporter

A markdown reporter for Jest tests with expandable sections containing per test console logs

Configuration

The options are as follows: | Option | Type | Default | Description | Sample | Values | | ------------ | --------- | --------------- | ---------------------------------- | ------------------------------------------------------------- | -------------------------------------- | | filename | string | test-results.md | Name of the markdown output file | | | | publicPath | string | ./ | Directory for the output file | | | | displayAll | boolean | false | Show all tests, not just failures | sample-outputs/displayAll | | | failureMessages | boolean | true | Show failure messages in the report| sample-outputs/failureMessages | | | consoleLogs | string[] | [] | Types of console logs to include | sample-outputs/allOptions | "all", "debug", "info", "error", "log", "warn" | | prioritizeFailures | boolean | false | Display failed tests at the top with jump links | | | | ciOutput | string[] | []| Output for CI environments (written using file locks, see below) | | Environment Variables to be used as output| | skipDisplayIfNoFailures | boolean | true | If true, omits the test-by-test section when there are no failures | | | | enableAnnotations | boolean | false | If true, displays GitHub Actions annotations for each failure (see below) | | |

File Locking and CI Output

When writing to CI output files (such as those pointed to by environment variables like GITHUB_STEP_SUMMARY), this reporter uses file locks to ensure safe, atomic writes. The content is written in the following order:

  • Summary (latest run)
  • Old Content (if any)
  • Test-by-Test Details (latest run)

This prevents race conditions and ensures that CI systems always see a consistent report.

GitHub Annotations

If enableAnnotations is set to true, the reporter will emit GitHub Actions workflow annotations for each failed test. These annotations will appear in the "Annotations" or "Summary" tab of your GitHub Actions run, making it easy to spot and navigate to failures directly from the Actions UI.

To install this reporter, it should be as simple as:

npm i jest-markdown-expand-reporter

or

yarn add jest-markdown-expand-reporter

Update jest.config.js or package.json as follows:

 "jest": {
  // To capture console logs in the output
  "setupFilesAfterEnv": ["jest-markdown-expand-reporter/dist/patchConsole.js"],
	"reporters": [
		[
			"jest-markdown-expand-reporter",
			{
				"filename": "test-report.md",
				"publicPath": "./test-reports",
				"displayAllTests": true,
				"consoleLogs": ["all"],
				"ciOutput": ["GITHUB_STEP_SUMMARY"],
				"enableAnnotations": true,
				"skipDisplayIfNoFailures": true
			},
		],
	],
 },

Contribution

Reach out to me for contribution or to request updates :)