{"action":"closed","issue":{"url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/2","labels_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/2/comments","events_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/2/events","html_url":"https://github.com/sindresorhus/loud-rejection/issues/2","id":111877626,"number":2,"title":"Should I use this in tests?","user":{"login":"callumlocke","id":250617,"avatar_url":"https://avatars.githubusercontent.com/u/250617?v=3","gravatar_id":"","url":"https://api.github.com/users/callumlocke","html_url":"https://github.com/callumlocke","followers_url":"https://api.github.com/users/callumlocke/followers","following_url":"https://api.github.com/users/callumlocke/following{/other_user}","gists_url":"https://api.github.com/users/callumlocke/gists{/gist_id}","starred_url":"https://api.github.com/users/callumlocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callumlocke/subscriptions","organizations_url":"https://api.github.com/users/callumlocke/orgs","repos_url":"https://api.github.com/users/callumlocke/repos","events_url":"https://api.github.com/users/callumlocke/events{/privacy}","received_events_url":"https://api.github.com/users/callumlocke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T17:41:44Z","updated_at":"2015-10-18T12:24:33Z","closed_at":"2015-10-18T12:24:33Z","body":"README.md:\r\n\r\n> **Should NOT be used in reusable modules. Only in top-level apps / CLI tools.**\r\n\r\nThat makes sense. But what about using it in *tests* for reusable modules?\r\n\r\nFor example, mocha now lets me [return a promise](https://mochajs.org/#working-with-promises). But let's say I forget to actually type `return`, so I just have a loose promise:\r\n\r\n```js\r\nit('does something', function () {\r\n  foo().then(function (result) {\r\n     assert(result.isGood);\r\n  });\r\n});\r\n```\r\n\r\n..the test passes immediately, then some time later my promise silently fails.\r\n\r\nWould you recommend calling loud-rejection at the top of any test script?"}}