{"id":15357,"library":"mocha-fivemat-progress-reporter","title":"Mocha Fivemat Progress Reporter","description":"The `mocha-fivemat-progress-reporter` package offers a specialized test reporter for the Mocha JavaScript test framework. It is designed to combine the minimalist, progress-oriented feedback of Mocha's built-in progress reporter with the condensed, informative output style of the `fivemat` reporter. This reporter visualizes test execution with a per-test-suite progress bar, providing immediate visual cues on test progress. Currently at version 0.1.0, the package was last published approximately 10 years ago (June 2016), indicating that it is no longer actively maintained. Its core differentiation lies in offering a hybrid reporting style that aims to provide both a quick overview of ongoing tests and a concise summary upon completion, making it distinct from verbose or solely progress-based reporters.","status":"abandoned","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/danquirk/mocha-fivemat-progress-reporter","tags":["javascript","mocha"],"install":[{"cmd":"npm install mocha-fivemat-progress-reporter","lang":"bash","label":"npm"},{"cmd":"yarn add mocha-fivemat-progress-reporter","lang":"bash","label":"yarn"},{"cmd":"pnpm add mocha-fivemat-progress-reporter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This is a Mocha test reporter and requires Mocha as the test runner to function. It is typically installed as a devDependency alongside Mocha.","package":"mocha","optional":false},{"reason":"The reporter is explicitly 'based on fivemat' and draws conceptual and functional inspiration from it, though it doesn't list it as a direct npm dependency.","package":"mocha-fivemat-reporter","optional":true}],"imports":[{"note":"This package is an older CommonJS module. It's primarily used via Mocha's CLI `-R` flag, but if programmatically required, use CommonJS syntax.","wrong":"import reporter from 'mocha-fivemat-progress-reporter';","symbol":"mocha-fivemat-progress-reporter","correct":"const reporter = require('mocha-fivemat-progress-reporter');"}],"quickstart":{"code":"{\n  \"name\": \"my-project\",\n  \"version\": \"1.0.0\",\n  \"description\": \"A project using mocha-fivemat-progress-reporter\",\n  \"devDependencies\": {\n    \"mocha\": \"^8.0.0\",\n    \"mocha-fivemat-progress-reporter\": \"^0.1.0\"\n  },\n  \"scripts\": {\n    \"test\": \"mocha -R mocha-fivemat-progress-reporter\"\n  }\n}\n\n// test/example.test.js\nconst assert = require('assert');\n\ndescribe('Array', function() {\n  describe('#indexOf()', function() {\n    it('should return -1 when the value is not present', function() {\n      assert.equal([1, 2, 3].indexOf(4), -1);\n    });\n\n    it('should return the correct index when the value is present', function() {\n      assert.equal([1, 2, 3].indexOf(2), 1);\n    });\n\n    it('should handle zero correctly', function() {\n      assert.equal([0, 1, 2].indexOf(0), 0);\n    });\n  });\n\n  describe('String', function() {\n    it('should return the length of the string', function() {\n      assert.equal('hello'.length, 5);\n    });\n\n    it('should concatenate strings', function() {\n      assert.equal('hello' + 'world', 'helloworld');\n    });\n  });\n});\n\n// To run: \n// 1. npm install\n// 2. npm test","lang":"javascript","description":"This quickstart demonstrates how to install `mocha-fivemat-progress-reporter` and use it as a custom reporter for Mocha tests via the command line. It includes a `package.json` setup and a basic test file."},"warnings":[{"fix":"Consider using actively maintained Mocha reporters such as 'spec', 'nyan', 'list', or modern community-developed alternatives. If attempting to use this package, you may need to pin to older Node.js and Mocha versions (e.g., Mocha < 5.0.0).","message":"This package is very old (last published 10 years ago) and is unlikely to be compatible with recent versions of Node.js or Mocha (v8+). It may rely on deprecated Mocha APIs or older Node.js runtime features that are no longer available.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Evaluate newer, actively maintained Mocha reporters. If custom reporting logic is needed, consider extending Mocha's base reporter class yourself or contributing to another open-source reporter.","message":"The project is abandoned and receives no maintenance. This means there will be no bug fixes, security updates, or feature enhancements. Using it in production or sensitive environments is not recommended.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use CommonJS `require()` if you must import it programmatically. For typical usage, specify the reporter name via the Mocha CLI (`mocha -R mocha-fivemat-progress-reporter`).","message":"As an older CommonJS module, it does not natively support ES Modules (`import`/`export`) syntax directly. Attempting to import it using ES Modules in a modern Node.js environment configured for ESM will result in errors.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-21T00:00:00.000Z","next_check":"2026-07-20T00:00:00.000Z","problems":[{"fix":"Ensure `mocha-fivemat-progress-reporter` is listed in your `package.json`'s `devDependencies` and run `npm install` (or `yarn add --dev mocha-fivemat-progress-reporter`). Also, verify the reporter name in the `-R` flag is spelled correctly.","cause":"The reporter package is not installed or Mocha cannot locate it in `node_modules`. This often happens if it's not listed in `devDependencies` or `npm install` wasn't run.","error":"Error: Cannot find reporter \"mocha-fivemat-progress-reporter\""},{"fix":"This package is likely incompatible with modern Mocha versions. Consider using a different, actively maintained reporter. If you absolutely need this specific reporter, you might have to downgrade your Mocha installation significantly (e.g., to a version released before 2016, like Mocha v2 or v3).","cause":"The reporter was developed for an older version of Mocha and uses APIs that have been changed or removed in your current Mocha installation.","error":"Mocha has detected a problem with your configuration: Your custom reporter must be 'mocha-fivemat-progress-reporter', but it expects an older Mocha API version."}],"ecosystem":"npm"}