{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/296","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/296/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/296/events","html_url":"https://github.com/sindresorhus/ava/pull/296","id":120097477,"number":296,"title":"Node.js-style --require CLI argument","user":{"login":"jokeyrhyme","id":479816,"avatar_url":"https://avatars.githubusercontent.com/u/479816?v=3","gravatar_id":"","url":"https://api.github.com/users/jokeyrhyme","html_url":"https://github.com/jokeyrhyme","followers_url":"https://api.github.com/users/jokeyrhyme/followers","following_url":"https://api.github.com/users/jokeyrhyme/following{/other_user}","gists_url":"https://api.github.com/users/jokeyrhyme/gists{/gist_id}","starred_url":"https://api.github.com/users/jokeyrhyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokeyrhyme/subscriptions","organizations_url":"https://api.github.com/users/jokeyrhyme/orgs","repos_url":"https://api.github.com/users/jokeyrhyme/repos","events_url":"https://api.github.com/users/jokeyrhyme/events{/privacy}","received_events_url":"https://api.github.com/users/jokeyrhyme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-12-03T05:27:33Z","updated_at":"2015-12-11T00:24:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/296","html_url":"https://github.com/sindresorhus/ava/pull/296","diff_url":"https://github.com/sindresorhus/ava/pull/296.diff","patch_url":"https://github.com/sindresorhus/ava/pull/296.patch"},"body":"I figured I'd have an attempt at being able to pass the `--require` through to the Node executable used for the child process (#229).\r\n\r\nMy test project uses `import` and `export`, so doesn't execute in Node v5 without babel/register. I can manually confirm using `npm link` that the changes I have so far function as expected.\r\n\r\nBesides general comments (very much appreciated), I'm a little bit at a loss as where to start with the tests. Do I need to confirm (with tests) that the `ava --require moduleId` works? Or is it sufficient to use mocks and confirm that arguments are being passed through as expected?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/163794349","html_url":"https://github.com/sindresorhus/ava/pull/296#issuecomment-163794349","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/296","id":163794349,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T00:24:38Z","updated_at":"2015-12-11T00:24:38Z","body":"LGTM"}}