{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/comments/46144437","id":46144437,"diff_hunk":"@@ -14,8 +14,9 @@\n     \"lint\": \"eslint . --quiet --no-color && sass-lint --verbose\",\n     \"release\": \"./scripts/release.sh\",\n     \"release-beta\": \"./scripts/release-beta.sh\",\n-    \"test\": \"BABEL_ENV=test mocha --opts scripts/mocha.opts --reporter dot && npm run lint\",\n-    \"test:watch\": \"BABEL_ENV=test mocha --opts scripts/mocha.opts --reporter min --watch\",\n+    \"test\": \"BABEL_ENV=test mocha --opts scripts/mocha.opts --compilers js:babel/register --reporter dot && npm run lint\",\n+    \"test:coverage\": \"BABEL_ENV=test babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- --opts scripts/mocha.opts --reporter dot && npm run lint\",","path":"package.json","position":7,"original_position":7,"commit_id":"505c63a11ae546ad0fc5af88b002ba9a423a3913","original_commit_id":"505c63a11ae546ad0fc5af88b002ba9a423a3913","user":{"login":"Jerskouille","id":5095856,"avatar_url":"https://avatars.githubusercontent.com/u/5095856?v=3","gravatar_id":"","url":"https://api.github.com/users/Jerskouille","html_url":"https://github.com/Jerskouille","followers_url":"https://api.github.com/users/Jerskouille/followers","following_url":"https://api.github.com/users/Jerskouille/following{/other_user}","gists_url":"https://api.github.com/users/Jerskouille/gists{/gist_id}","starred_url":"https://api.github.com/users/Jerskouille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jerskouille/subscriptions","organizations_url":"https://api.github.com/users/Jerskouille/orgs","repos_url":"https://api.github.com/users/Jerskouille/repos","events_url":"https://api.github.com/users/Jerskouille/events{/privacy}","received_events_url":"https://api.github.com/users/Jerskouille/received_events","type":"User","site_admin":false},"body":"Not with `babel-node` that is needed for it to work. (Trust me, I've tried reducing the commands as much as possible)\r\nHere is the error when I try without it:\r\n```txt\r\nError: Cannot find module 'path_to_my_project/babel-istanbul'\r\n\r\n```","created_at":"2015-11-30T13:53:13Z","updated_at":"2015-11-30T13:53:13Z","html_url":"https://github.com/algolia/instantsearch.js/pull/697#discussion_r46144437","pull_request_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697","_links":{"self":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/comments/46144437"},"html":{"href":"https://github.com/algolia/instantsearch.js/pull/697#discussion_r46144437"},"pull_request":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697","id":52081079,"html_url":"https://github.com/algolia/instantsearch.js/pull/697","diff_url":"https://github.com/algolia/instantsearch.js/pull/697.diff","patch_url":"https://github.com/algolia/instantsearch.js/pull/697.patch","issue_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/697","number":697,"state":"open","locked":false,"title":"test(coverage): Add babel-istanbul for coverage","user":{"login":"Jerskouille","id":5095856,"avatar_url":"https://avatars.githubusercontent.com/u/5095856?v=3","gravatar_id":"","url":"https://api.github.com/users/Jerskouille","html_url":"https://github.com/Jerskouille","followers_url":"https://api.github.com/users/Jerskouille/followers","following_url":"https://api.github.com/users/Jerskouille/following{/other_user}","gists_url":"https://api.github.com/users/Jerskouille/gists{/gist_id}","starred_url":"https://api.github.com/users/Jerskouille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jerskouille/subscriptions","organizations_url":"https://api.github.com/users/Jerskouille/orgs","repos_url":"https://api.github.com/users/Jerskouille/repos","events_url":"https://api.github.com/users/Jerskouille/events{/privacy}","received_events_url":"https://api.github.com/users/Jerskouille/received_events","type":"User","site_admin":false},"body":"Linked to  #355 .\r\n\r\nThis adds `npm run test:coverage` which uses `babel-istanbul`.\r\nThe difference between `istanbul` and `babel-istanbul` is that it shows coverage on the code before it is compiled by `babel`.","created_at":"2015-11-30T03:04:39Z","updated_at":"2015-11-30T13:53:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa876a8dfd86576905193fd8cb03ac550d735d35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697/commits","review_comments_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697/comments","review_comment_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/697/comments","statuses_url":"https://api.github.com/repos/algolia/instantsearch.js/statuses/505c63a11ae546ad0fc5af88b002ba9a423a3913","head":{"label":"algolia:test/add-coverage","ref":"test/add-coverage","sha":"505c63a11ae546ad0fc5af88b002ba9a423a3913","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":39443258,"name":"instantsearch.js","full_name":"algolia/instantsearch.js","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/instantsearch.js","description":"instantsearch.js is a library of widgets designed for high performance instant search experiences using Algolia","fork":false,"url":"https://api.github.com/repos/algolia/instantsearch.js","forks_url":"https://api.github.com/repos/algolia/instantsearch.js/forks","keys_url":"https://api.github.com/repos/algolia/instantsearch.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/instantsearch.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/instantsearch.js/teams","hooks_url":"https://api.github.com/repos/algolia/instantsearch.js/hooks","issue_events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/instantsearch.js/events","assignees_url":"https://api.github.com/repos/algolia/instantsearch.js/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/instantsearch.js/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/instantsearch.js/tags","blobs_url":"https://api.github.com/repos/algolia/instantsearch.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/instantsearch.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/instantsearch.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/instantsearch.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/instantsearch.js/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/instantsearch.js/languages","stargazers_url":"https://api.github.com/repos/algolia/instantsearch.js/stargazers","contributors_url":"https://api.github.com/repos/algolia/instantsearch.js/contributors","subscribers_url":"https://api.github.com/repos/algolia/instantsearch.js/subscribers","subscription_url":"https://api.github.com/repos/algolia/instantsearch.js/subscription","commits_url":"https://api.github.com/repos/algolia/instantsearch.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/instantsearch.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/instantsearch.js/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/instantsearch.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/instantsearch.js/merges","archive_url":"https://api.github.com/repos/algolia/instantsearch.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/instantsearch.js/downloads","issues_url":"https://api.github.com/repos/algolia/instantsearch.js/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/instantsearch.js/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/instantsearch.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/labels{/name}","releases_url":"https://api.github.com/repos/algolia/instantsearch.js/releases{/id}","created_at":"2015-07-21T12:10:27Z","updated_at":"2015-11-30T11:32:04Z","pushed_at":"2015-11-30T08:25:56Z","git_url":"git://github.com/algolia/instantsearch.js.git","ssh_url":"git@github.com:algolia/instantsearch.js.git","clone_url":"https://github.com/algolia/instantsearch.js.git","svn_url":"https://github.com/algolia/instantsearch.js","homepage":"https://community.algolia.com/instantsearch.js/","size":7125,"stargazers_count":477,"watchers_count":477,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":30,"forks":35,"open_issues":30,"watchers":477,"default_branch":"master"}},"base":{"label":"algolia:develop","ref":"develop","sha":"8e4a8f5243df87c4b1e4f9c70f396769b2a01718","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":39443258,"name":"instantsearch.js","full_name":"algolia/instantsearch.js","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/instantsearch.js","description":"instantsearch.js is a library of widgets designed for high performance instant search experiences using Algolia","fork":false,"url":"https://api.github.com/repos/algolia/instantsearch.js","forks_url":"https://api.github.com/repos/algolia/instantsearch.js/forks","keys_url":"https://api.github.com/repos/algolia/instantsearch.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/instantsearch.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/instantsearch.js/teams","hooks_url":"https://api.github.com/repos/algolia/instantsearch.js/hooks","issue_events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/instantsearch.js/events","assignees_url":"https://api.github.com/repos/algolia/instantsearch.js/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/instantsearch.js/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/instantsearch.js/tags","blobs_url":"https://api.github.com/repos/algolia/instantsearch.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/instantsearch.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/instantsearch.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/instantsearch.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/instantsearch.js/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/instantsearch.js/languages","stargazers_url":"https://api.github.com/repos/algolia/instantsearch.js/stargazers","contributors_url":"https://api.github.com/repos/algolia/instantsearch.js/contributors","subscribers_url":"https://api.github.com/repos/algolia/instantsearch.js/subscribers","subscription_url":"https://api.github.com/repos/algolia/instantsearch.js/subscription","commits_url":"https://api.github.com/repos/algolia/instantsearch.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/instantsearch.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/instantsearch.js/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/instantsearch.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/instantsearch.js/merges","archive_url":"https://api.github.com/repos/algolia/instantsearch.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/instantsearch.js/downloads","issues_url":"https://api.github.com/repos/algolia/instantsearch.js/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/instantsearch.js/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/instantsearch.js/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/instantsearch.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/labels{/name}","releases_url":"https://api.github.com/repos/algolia/instantsearch.js/releases{/id}","created_at":"2015-07-21T12:10:27Z","updated_at":"2015-11-30T11:32:04Z","pushed_at":"2015-11-30T08:25:56Z","git_url":"git://github.com/algolia/instantsearch.js.git","ssh_url":"git@github.com:algolia/instantsearch.js.git","clone_url":"https://github.com/algolia/instantsearch.js.git","svn_url":"https://github.com/algolia/instantsearch.js","homepage":"https://community.algolia.com/instantsearch.js/","size":7125,"stargazers_count":477,"watchers_count":477,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":30,"forks":35,"open_issues":30,"watchers":477,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697"},"html":{"href":"https://github.com/algolia/instantsearch.js/pull/697"},"issue":{"href":"https://api.github.com/repos/algolia/instantsearch.js/issues/697"},"comments":{"href":"https://api.github.com/repos/algolia/instantsearch.js/issues/697/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/instantsearch.js/pulls/697/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/instantsearch.js/statuses/505c63a11ae546ad0fc5af88b002ba9a423a3913"}}}}