{"id":13611259,"url":"https://github.com/froots/mocha-koans-reporter","last_synced_at":"2025-07-09T23:32:19.624Z","repository":{"id":5044549,"uuid":"6205065","full_name":"froots/mocha-koans-reporter","owner":"froots","description":"A Mocha reporter to allow creation of JavaScript koans for learning enlightenment","archived":false,"fork":false,"pushed_at":"2017-12-15T05:02:35.000Z","size":148,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-21T09:16:43.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gongminmin/KlayGE","license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froots.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":"2012-10-13T16:42:39.000Z","updated_at":"2013-10-27T04:24:49.000Z","dependencies_parsed_at":"2022-09-26T16:21:46.159Z","dependency_job_id":null,"html_url":"https://github.com/froots/mocha-koans-reporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/froots/mocha-koans-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fmocha-koans-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fmocha-koans-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fmocha-koans-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fmocha-koans-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froots","download_url":"https://codeload.github.com/froots/mocha-koans-reporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froots%2Fmocha-koans-reporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505231,"owners_count":23618906,"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":[],"created_at":"2024-08-01T19:01:53.423Z","updated_at":"2025-07-09T23:32:19.602Z","avatar_url":"https://github.com/froots.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"mocha-koans-reporter\n====================\n\nA reporter for [mocha](http://visionmedia.github.com/mocha/) to simplify the creation of JavaScript koans.\n\nHeavily inspired by and modelled on the [New Context Ruby Koans](http://rubykoans.com/).\n\nPre-requisities\n---------------\n\n* [Node.js](http://nodejs.org/)\n* [NPM](https://npmjs.org/)\n\nInstall\n-------\n\n    npm install -g mocha-koans-reporter\n\nUsage\n-----\n\n1. Create a project for your koans with the following dependencies:\n  * [Mocha](http://visionmedia.github.com/mocha/)\n  * [Chai](http://chaijs.com/) or another assertion library\n1. Create a `test` directory to hold your koans.\n1. Create a `test/mocha.opts` file to specify default mocha running options with the following contents\n\n    ```\n    --reporter mocha-koans-reporter\n    --require test/common\n    --bail\n    --recursive\n    --watch\n    ```\n\n1. Create a `test/common.js` file to specify global module dependencies across your koans, and set other defaults, e.g:\n\n    ```javascript\n    global.chai = require('chai');\n    global.expect = chai.expect;\n    global.__ = \"FILL ME IN\";\n    ```\n\n1. Create 1 or more test files in your `test` directory, e.g. `test/about-truth.js`:\n\n    ```javascript\n    describe('truthiness', function() {\n      it('is indeed true', function() {\n        expect(true).to.equal(__);\n      });\n    });\n    ```\n\n1. You can then run koans with `mocha`, or map `npm test` to this by adding this to your `package.json`:\n\n    ```javascript\n    \"scripts\": {\n      \"test\": \"mocha\"\n    }\n    ```\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroots%2Fmocha-koans-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroots%2Fmocha-koans-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroots%2Fmocha-koans-reporter/lists"}