{"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.","language":"javascript","status":"abandoned","last_verified":"Tue Apr 21","install":{"commands":["npm install mocha-fivemat-progress-reporter"],"cli":null},"imports":["const reporter = require('mocha-fivemat-progress-reporter');"],"auth":{"required":false,"env_vars":[]},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}