{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/61","labels_url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/61/comments","events_url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/61/events","html_url":"https://github.com/webdriverio/grunt-webdriver/issues/61","id":93451888,"number":61,"title":"use wdio.conf.js config file","user":{"login":"bboyle","id":559114,"avatar_url":"https://avatars.githubusercontent.com/u/559114?v=3","gravatar_id":"","url":"https://api.github.com/users/bboyle","html_url":"https://github.com/bboyle","followers_url":"https://api.github.com/users/bboyle/followers","following_url":"https://api.github.com/users/bboyle/following{/other_user}","gists_url":"https://api.github.com/users/bboyle/gists{/gist_id}","starred_url":"https://api.github.com/users/bboyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboyle/subscriptions","organizations_url":"https://api.github.com/users/bboyle/orgs","repos_url":"https://api.github.com/users/bboyle/repos","events_url":"https://api.github.com/users/bboyle/events{/privacy}","received_events_url":"https://api.github.com/users/bboyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-07T06:38:11Z","updated_at":"2015-07-08T09:03:21Z","closed_at":null,"body":"is there an option so I get grunt-webdriver to use the options specified in wdio.conf.js?\r\n\r\nI'm particularly looking for a way to use the `before` hook."},"comment":{"url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/comments/119506196","html_url":"https://github.com/webdriverio/grunt-webdriver/issues/61#issuecomment-119506196","issue_url":"https://api.github.com/repos/webdriverio/grunt-webdriver/issues/61","id":119506196,"user":{"login":"bboyle","id":559114,"avatar_url":"https://avatars.githubusercontent.com/u/559114?v=3","gravatar_id":"","url":"https://api.github.com/users/bboyle","html_url":"https://github.com/bboyle","followers_url":"https://api.github.com/users/bboyle/followers","following_url":"https://api.github.com/users/bboyle/following{/other_user}","gists_url":"https://api.github.com/users/bboyle/gists{/gist_id}","starred_url":"https://api.github.com/users/bboyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboyle/subscriptions","organizations_url":"https://api.github.com/users/bboyle/orgs","repos_url":"https://api.github.com/users/bboyle/repos","events_url":"https://api.github.com/users/bboyle/events{/privacy}","received_events_url":"https://api.github.com/users/bboyle/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T09:03:21Z","updated_at":"2015-07-08T09:03:21Z","body":"not sure. I have these lines at the top of my test, which I moved into a new file before.js:\r\n\r\n```javascript\r\nvar chai = require( 'chai' );\r\nvar chaiAsPromised = require( 'chai-as-promised' );\r\nchai.use( chaiAsPromised );\r\nchai.should();\r\nvar assert = chai.assert;\r\nvar Q = require( 'q' );\r\n```\r\n\r\nGruntfile says this:\r\n`tests: [ 'test/before.js', 'test/uat/*.js' ]`\r\n\r\nAnd when I run grunt I get this error:\r\n`ReferenceError: Q is not defined`"}}