{"action":"created","issue":{"url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/132","repository_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber","labels_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/132/comments","events_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/132/events","html_url":"https://github.com/mucsi96/nightwatch-cucumber/issues/132","id":185783976,"number":132,"title":"Process fails if I throw error in the hook or step","user":{"login":"klokovas","id":8973021,"avatar_url":"https://avatars.githubusercontent.com/u/8973021?v=3","gravatar_id":"","url":"https://api.github.com/users/klokovas","html_url":"https://github.com/klokovas","followers_url":"https://api.github.com/users/klokovas/followers","following_url":"https://api.github.com/users/klokovas/following{/other_user}","gists_url":"https://api.github.com/users/klokovas/gists{/gist_id}","starred_url":"https://api.github.com/users/klokovas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klokovas/subscriptions","organizations_url":"https://api.github.com/users/klokovas/orgs","repos_url":"https://api.github.com/users/klokovas/repos","events_url":"https://api.github.com/users/klokovas/events{/privacy}","received_events_url":"https://api.github.com/users/klokovas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-27T21:22:51Z","updated_at":"2016-11-07T14:01:56Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n\r\n```\r\n[X] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead use https://groups.google.com/d/forum/nightwatch-cucumber\r\n```\r\n\r\n**Current behavior**\r\nI have hooks.js. I want use assertion after each step. I check browser logs.\r\n\r\n```\r\nmodule.exports = function () {\r\n  this.AfterStep(function (features,  callback) {\r\n    throw 'err';\r\n    callback();\r\n  });\r\n}\r\n```\r\n\r\nOR\r\n\r\n```\r\nmodule.exports = function () {\r\n  this.AfterStep(function (features) {\r\n    this.assert.someNWassertion();\r\n  });\r\n}\r\n```\r\n\r\nWhen I run the tests I get an error:\r\n\r\n```\r\nUnhandled Rejection at: Promise Promise {\r\n  _c: [],\r\n  _a: [],\r\n  _s: 2,\r\n  _d: true,\r\n  _v: 'node_modules/cucumber/lib/cucumber/support_code/library.js:17 node_modules/cucumber/lib/cucumber/support_code/library.js:17 err',\r\n  _h: 0,\r\n  _n: false } reason: node_modules/cucumber/lib/cucumber/support_code/library.js:17 node_modules/cucumber/lib/cucumber/support_code/library.js:17 err\r\n```\r\n\r\n**Please tell us about your environment:**\r\n- **nightwatch-cucumber version:**\r\n  `5.5.2`\r\n- **nightwatch version:**\r\n  `0.9.8`\r\n- **cucumber version:**\r\n  `1.3.1`\r\n- **Node.js version:**\r\n  `6.3.1`\r\n"},"comment":{"url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/comments/258842702","html_url":"https://github.com/mucsi96/nightwatch-cucumber/issues/132#issuecomment-258842702","issue_url":"https://api.github.com/repos/mucsi96/nightwatch-cucumber/issues/132","id":258842702,"user":{"login":"klokovas","id":8973021,"avatar_url":"https://avatars.githubusercontent.com/u/8973021?v=3","gravatar_id":"","url":"https://api.github.com/users/klokovas","html_url":"https://github.com/klokovas","followers_url":"https://api.github.com/users/klokovas/followers","following_url":"https://api.github.com/users/klokovas/following{/other_user}","gists_url":"https://api.github.com/users/klokovas/gists{/gist_id}","starred_url":"https://api.github.com/users/klokovas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klokovas/subscriptions","organizations_url":"https://api.github.com/users/klokovas/orgs","repos_url":"https://api.github.com/users/klokovas/repos","events_url":"https://api.github.com/users/klokovas/events{/privacy}","received_events_url":"https://api.github.com/users/klokovas/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T14:01:56Z","updated_at":"2016-11-07T14:01:56Z","body":"Hi @mucsi96 !\r\n\r\n```\r\n[X] It works for step definitions.\r\n[ ] But this doesn't work for hooks.\r\n[ ] And now you have an error in the documentation: hooks always provide Nightwatch API.\r\n```\r\n"}}
{"actor":{"display_login":"klokovas"}}