{"action":"created","issue":{"url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/80","repository_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs","labels_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/80/comments","events_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/80/events","html_url":"https://github.com/nathanboktae/mocha-casperjs/issues/80","id":132505952,"number":80,"title":"Phantomjs error: TypeError: undefined is not an object (evaluating 'phantomArgs.forEach')","user":{"login":"alexserver","id":694404,"avatar_url":"https://avatars.githubusercontent.com/u/694404?v=3","gravatar_id":"","url":"https://api.github.com/users/alexserver","html_url":"https://github.com/alexserver","followers_url":"https://api.github.com/users/alexserver/followers","following_url":"https://api.github.com/users/alexserver/following{/other_user}","gists_url":"https://api.github.com/users/alexserver/gists{/gist_id}","starred_url":"https://api.github.com/users/alexserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexserver/subscriptions","organizations_url":"https://api.github.com/users/alexserver/orgs","repos_url":"https://api.github.com/users/alexserver/repos","events_url":"https://api.github.com/users/alexserver/events{/privacy}","received_events_url":"https://api.github.com/users/alexserver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-09T19:14:54Z","updated_at":"2016-02-13T10:58:28Z","closed_at":null,"body":"I'm getting the following error when I attempt to run tests:\r\n```\r\n> mocha-casperjs --ignore-ssl-errors=yes ./tests/**/*.js\r\n\r\nFontconfig warning: ignoring UTF-8: not a valid region tag\r\nTypeError: undefined is not an object (evaluating 'phantomArgs.forEach')\r\n\r\n  phantomjs://platform/cli.js:103 in parse\r\n```\r\n\r\nI'm running from my project\r\n`npm run test`\r\n\r\nIn scripts I have configured:\r\n`\"test\": \"mocha-casperjs --ignore-ssl-errors=yes ./tests/**/*.js\",`\r\n\r\nI have globally installed:\r\n`phantomjs@2.1.3`\r\n\r\nAnd locally installed:\r\n```\r\n    \"casper-chai\": \"^0.2.1\",\r\n    \"casperjs\": \"^1.1.0-beta4\",\r\n    \"chai\": \"^3.5.0\",\r\n    \"mocha\": \"^2.3.4\",\r\n    \"mocha-casperjs\": \"^0.5.5\"\r\n```"},"comment":{"url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/comments/183642313","html_url":"https://github.com/nathanboktae/mocha-casperjs/issues/80#issuecomment-183642313","issue_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/80","id":183642313,"user":{"login":"istr","id":4235579,"avatar_url":"https://avatars.githubusercontent.com/u/4235579?v=3","gravatar_id":"","url":"https://api.github.com/users/istr","html_url":"https://github.com/istr","followers_url":"https://api.github.com/users/istr/followers","following_url":"https://api.github.com/users/istr/following{/other_user}","gists_url":"https://api.github.com/users/istr/gists{/gist_id}","starred_url":"https://api.github.com/users/istr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istr/subscriptions","organizations_url":"https://api.github.com/users/istr/orgs","repos_url":"https://api.github.com/users/istr/repos","events_url":"https://api.github.com/users/istr/events{/privacy}","received_events_url":"https://api.github.com/users/istr/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T10:58:28Z","updated_at":"2016-02-13T10:58:28Z","body":"> casperjs' patched require and phantomjs' lack of require.paths support (at the time, dunno about 2.x) caused me a lot of grief so the cli wrapper is to address issues with that.\r\n\r\nOk, thanks for pointing that out -- will keep it in mind for the next steps."}}