{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/97","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/97/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/97/events","html_url":"https://github.com/sindresorhus/ava/issues/97","id":113145906,"number":97,"title":"Remove support for running the test file directly with node","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},"labels":[{"url":"https://api.github.com/repos/sindresorhus/ava/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-24T08:37:16Z","updated_at":"2015-10-24T10:01:54Z","closed_at":null,"body":"It's nice in theory to be able to `node test.js`, but the reality is that it complicates the code a lot and by using it that way you miss out on the best features of AVA. It also create diverging code paths that just becomes harder to maintain.\r\n\r\nThis would also fix #52.\r\n\r\n@vdemedes I guess we can remove https://github.com/sindresorhus/ava/blob/c96622d6d8785719d16aa83d129cb5ffccbf9add/index.js#L75-L86 now. Anything else that can be removed/simplified because of this?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/150780261","html_url":"https://github.com/sindresorhus/ava/issues/97#issuecomment-150780261","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/97","id":150780261,"user":{"login":"schnittstabil","id":6059032,"avatar_url":"https://avatars.githubusercontent.com/u/6059032?v=3","gravatar_id":"","url":"https://api.github.com/users/schnittstabil","html_url":"https://github.com/schnittstabil","followers_url":"https://api.github.com/users/schnittstabil/followers","following_url":"https://api.github.com/users/schnittstabil/following{/other_user}","gists_url":"https://api.github.com/users/schnittstabil/gists{/gist_id}","starred_url":"https://api.github.com/users/schnittstabil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnittstabil/subscriptions","organizations_url":"https://api.github.com/users/schnittstabil/orgs","repos_url":"https://api.github.com/users/schnittstabil/repos","events_url":"https://api.github.com/users/schnittstabil/events{/privacy}","received_events_url":"https://api.github.com/users/schnittstabil/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T10:01:54Z","updated_at":"2015-10-24T10:01:54Z","body":"With #83, removing does not have to be a real \"either-or decision\". It would be up to the user:\r\n\r\n```js\r\n// test.js\r\nimport test from 'ava';\r\n\r\ntest(t => {\r\n    t.pass();\r\n    t.end();\r\n});\r\n\r\ntest.runAndExit(); // or a similar one-liner\r\n```"}}