{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/12","labels_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/12/comments","events_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/12/events","html_url":"https://github.com/Codeception/CodeceptJS/issues/12","id":120720487,"number":12,"title":"Wrong 'require' for custom helpers","user":{"login":"roadhump","id":234692,"avatar_url":"https://avatars.githubusercontent.com/u/234692?v=3","gravatar_id":"","url":"https://api.github.com/users/roadhump","html_url":"https://github.com/roadhump","followers_url":"https://api.github.com/users/roadhump/followers","following_url":"https://api.github.com/users/roadhump/following{/other_user}","gists_url":"https://api.github.com/users/roadhump/gists{/gist_id}","starred_url":"https://api.github.com/users/roadhump/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roadhump/subscriptions","organizations_url":"https://api.github.com/users/roadhump/orgs","repos_url":"https://api.github.com/users/roadhump/repos","events_url":"https://api.github.com/users/roadhump/events{/privacy}","received_events_url":"https://api.github.com/users/roadhump/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T08:07:57Z","updated_at":"2015-12-07T18:38:21Z","closed_at":null,"body":"It seems like there is a bug in code which allows to use custom helpers. I suppose this config `codecept.json` was planned to work nice\r\n```json\r\n{\r\n  \"helpers\": {\r\n    \"MyCustomWebdriver\": {\r\n        \"require\": \"my-custom-webdriver\"\r\n     }\r\n  }\r\n}\r\n```\r\nbut now it seeks `require` key in main `helpers` config.\r\n\r\nAlso, it would be nice if `require` path here is resolved relatively to `codecept.json` location, like\r\n```json\r\n{\r\n  \"helpers\": {\r\n    \"MyCustomWebdriver\": {\r\n        \"require\": \"./lib/my-custom-webdriver\"\r\n     }\r\n  }\r\n}\r\n```\r\nbecause now it will work only with \r\n```json\r\n{\r\n  \"helpers\": {\r\n    \"MyCustomWebdriver\": {\r\n        \"require\": \"./../../../lib/my-custom-webdriver\"\r\n     }\r\n  }\r\n}\r\n```\r\n\r\nI am ready to make PR, but I wonder why there are no tests here, are they not written yet, because I feel wrong to write PR without tests :smiley: "},"comment":{"url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/comments/162617936","html_url":"https://github.com/Codeception/CodeceptJS/issues/12#issuecomment-162617936","issue_url":"https://api.github.com/repos/Codeception/CodeceptJS/issues/12","id":162617936,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T18:38:21Z","updated_at":"2015-12-07T18:38:21Z","body":"Thanks, actually looks I did a fix for this issue while writing tests :)\r\n\r\nSame as #10 \r\n\r\nThanks, I'm pushing my tests and fixes right now"}}