{"action":"created","issue":{"url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/58","repository_url":"https://api.github.com/repos/zinserjan/mocha-webpack","labels_url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/58/comments","events_url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/58/events","html_url":"https://github.com/zinserjan/mocha-webpack/issues/58","id":184147335,"number":58,"title":"Incompatible with unpublished thrid-party reporter","user":{"login":"ouchxp","id":1253729,"avatar_url":"https://avatars.githubusercontent.com/u/1253729?v=3","gravatar_id":"","url":"https://api.github.com/users/ouchxp","html_url":"https://github.com/ouchxp","followers_url":"https://api.github.com/users/ouchxp/followers","following_url":"https://api.github.com/users/ouchxp/following{/other_user}","gists_url":"https://api.github.com/users/ouchxp/gists{/gist_id}","starred_url":"https://api.github.com/users/ouchxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouchxp/subscriptions","organizations_url":"https://api.github.com/users/ouchxp/orgs","repos_url":"https://api.github.com/users/ouchxp/repos","events_url":"https://api.github.com/users/ouchxp/events{/privacy}","received_events_url":"https://api.github.com/users/ouchxp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-20T06:43:07Z","updated_at":"2016-12-29T19:54:29Z","closed_at":"2016-12-29T19:54:29Z","body":"I have a third-party mocha reporter would like to use, but `checkReporter` does not allow that.\nIn `checkReporter` we have two checks, `require(\"mocha/lib/reporters/\" + reporter);` and `require(reporter);` which applies to mocha's built-in reporter and published reporter. However unpublished reporter in my project will always fail.\n\n```\nError: reporter \"test/test-lib/specReporterWithLineNumber\" does not exist\n...\n```\n\nI think an extra `require(\"mocha/../../\" + reporter);` to check against unpublished thrid-party reporter would be nice to have. It's a bad pattern though. Currently I have to use `NODE_PATH=.` to solve this issue, which is not ideal either.\n"},"comment":{"url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/comments/269684233","html_url":"https://github.com/zinserjan/mocha-webpack/issues/58#issuecomment-269684233","issue_url":"https://api.github.com/repos/zinserjan/mocha-webpack/issues/58","id":269684233,"user":{"login":"zinserjan","id":8046231,"avatar_url":"https://avatars.githubusercontent.com/u/8046231?v=3","gravatar_id":"","url":"https://api.github.com/users/zinserjan","html_url":"https://github.com/zinserjan","followers_url":"https://api.github.com/users/zinserjan/followers","following_url":"https://api.github.com/users/zinserjan/following{/other_user}","gists_url":"https://api.github.com/users/zinserjan/gists{/gist_id}","starred_url":"https://api.github.com/users/zinserjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zinserjan/subscriptions","organizations_url":"https://api.github.com/users/zinserjan/orgs","repos_url":"https://api.github.com/users/zinserjan/repos","events_url":"https://api.github.com/users/zinserjan/events{/privacy}","received_events_url":"https://api.github.com/users/zinserjan/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T19:54:29Z","updated_at":"2016-12-29T19:54:29Z","body":"Fixed by #87.\r\n\r\n`Node_PATH` hack is no longer necessary. The following works:\r\n```\r\nmocha-webpack --webpack-config webpack.config.test.js --reporter test/test-lib/specReporterWithLineNumber.js ...\r\n```"}}
{"actor":{"display_login":"zinserjan"}}