{"action":"created","issue":{"url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/1","labels_url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/1/comments","events_url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/1/events","html_url":"https://github.com/douglasduteil/study-node-path-es6/issues/1","id":71730558,"number":1,"title":"Transformation error","user":{"login":"shannonmoeller","id":155164,"avatar_url":"https://avatars.githubusercontent.com/u/155164?v=3","gravatar_id":"","url":"https://api.github.com/users/shannonmoeller","html_url":"https://github.com/shannonmoeller","followers_url":"https://api.github.com/users/shannonmoeller/followers","following_url":"https://api.github.com/users/shannonmoeller/following{/other_user}","gists_url":"https://api.github.com/users/shannonmoeller/gists{/gist_id}","starred_url":"https://api.github.com/users/shannonmoeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannonmoeller/subscriptions","organizations_url":"https://api.github.com/users/shannonmoeller/orgs","repos_url":"https://api.github.com/users/shannonmoeller/repos","events_url":"https://api.github.com/users/shannonmoeller/events{/privacy}","received_events_url":"https://api.github.com/users/shannonmoeller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-28T23:02:05Z","updated_at":"2015-07-22T13:43:50Z","closed_at":null,"body":"Any idea what's causing this?\r\n\r\nhttps://travis-ci.org/douglasduteil/study-node-path-es6/jobs/57027484#L144-L150\r\n\r\nI get the same error when running this locally in my project.\r\n\r\n```sh\r\nbabel-node ./node_modules/.bin/isparta cover --report text --report lcov ./node_modules/.bin/_mocha\r\n```"},"comment":{"url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/comments/123726680","html_url":"https://github.com/douglasduteil/study-node-path-es6/issues/1#issuecomment-123726680","issue_url":"https://api.github.com/repos/douglasduteil/study-node-path-es6/issues/1","id":123726680,"user":{"login":"tysoncadenhead","id":355354,"avatar_url":"https://avatars.githubusercontent.com/u/355354?v=3","gravatar_id":"","url":"https://api.github.com/users/tysoncadenhead","html_url":"https://github.com/tysoncadenhead","followers_url":"https://api.github.com/users/tysoncadenhead/followers","following_url":"https://api.github.com/users/tysoncadenhead/following{/other_user}","gists_url":"https://api.github.com/users/tysoncadenhead/gists{/gist_id}","starred_url":"https://api.github.com/users/tysoncadenhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tysoncadenhead/subscriptions","organizations_url":"https://api.github.com/users/tysoncadenhead/orgs","repos_url":"https://api.github.com/users/tysoncadenhead/repos","events_url":"https://api.github.com/users/tysoncadenhead/events{/privacy}","received_events_url":"https://api.github.com/users/tysoncadenhead/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T13:43:50Z","updated_at":"2015-07-22T13:43:50Z","body":"I'm seeing that issue too on my project. For some reason, the `_mocha` script has a return inside an if statement. I'm not sure if Mocha intends for that script to be wrapped or something, but the issue is definitely with a return happening directly inside the global context."}}