{"action":"opened","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/518","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/518/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/518/events","html_url":"https://github.com/wallabyjs/public/issues/518","id":140756405,"number":518,"title":"Electron Test Runner Error","user":{"login":"teddyhwang","id":22878,"avatar_url":"https://avatars.githubusercontent.com/u/22878?v=3","gravatar_id":"","url":"https://api.github.com/users/teddyhwang","html_url":"https://github.com/teddyhwang","followers_url":"https://api.github.com/users/teddyhwang/followers","following_url":"https://api.github.com/users/teddyhwang/following{/other_user}","gists_url":"https://api.github.com/users/teddyhwang/gists{/gist_id}","starred_url":"https://api.github.com/users/teddyhwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teddyhwang/subscriptions","organizations_url":"https://api.github.com/users/teddyhwang/orgs","repos_url":"https://api.github.com/users/teddyhwang/repos","events_url":"https://api.github.com/users/teddyhwang/events{/privacy}","received_events_url":"https://api.github.com/users/teddyhwang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T18:20:08Z","updated_at":"2016-03-14T18:20:08Z","closed_at":null,"body":"### Issue description or question\r\n\r\nWhen trying to run the tests with Electron, I get the following error:\r\n\r\n> `/Users/teddy.hwang/Sites/Points/apollo/storefront/storefront-ng-core/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron: bad option: --harmony_arrow_functions`\r\n\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\nvar wallabify = require('wallabify');\r\nvar _ = require('lodash');\r\nvar ngHtml2Js = require('browserify-ng-html2js');\r\n\r\nvar wallabyPostprocessor = wallabify({\r\n    entryPatterns: [\r\n      'tests/client/**/*.js'\r\n    ],\r\n    extensions: ['.coffee']\r\n  },\r\n  function(b) {\r\n    b.transform(ngHtml2Js, {ext: '.html', global: true});\r\n  }\r\n);\r\n\r\nmodule.exports = function() {\r\n  return {\r\n    files: [\r\n      {pattern: 'node_modules/phantomjs-polyfill/bind-polyfill.js', instrumented: false},\r\n      {pattern: 'node_modules/intl/dist/Intl.min.js', instrumented: false},\r\n      {pattern: 'node_modules/intl/locale-data/complete.js', instrumented: false},\r\n      {pattern: 'node_modules/jquery/dist/jquery.min.js', instrumented: false},\r\n      {pattern: 'node_modules/sinon/pkg/sinon-1.17.3.js', instrumented: false},\r\n      {pattern: 'node_modules/chai/chai.js', instrumented: false},\r\n      {pattern: 'node_modules/chai-jquery/chai-jquery.js', instrumented: false},\r\n      {pattern: 'node_modules/sinon-chai/lib/sinon-chai.js', instrumented: false},\r\n      {pattern: 'src/scripts/**/*.coffee', load: false},\r\n      {pattern: 'src/scripts/**/*.js', load: false, instrumented: false},\r\n      {pattern: 'src/scripts/**/*.html', load: false},\r\n      {pattern: 'node_modules/@points/**/*.coffee', load: false, instrumented: false},\r\n      {pattern: 'node_modules/@points/**/*.html', load: false, instrumented: false},\r\n      {pattern: 'node_modules/@points/pts-fixtures/storefront/**/*.json', load: false, instrumented: false},\r\n      {pattern: 'tests/selectors/**/*.coffee', load: false},\r\n      {pattern: 'tests/defaultFormValues.coffee', load: false},\r\n      {pattern: 'tests/generators.coffee', load: false},\r\n      {pattern: 'tests/client/*.coffee', load: false},\r\n      {pattern: 'tests/client/integration/mixins/*.coffee', load: false}\r\n    ],\r\n    tests: [\r\n      {pattern: 'tests/client/unit/**/*.coffee', load: false}\r\n      // Integration tests are too slow\r\n      // , {pattern: 'tests/client/integration/*.coffee', load: false}\r\n    ],\r\n    testFramework: 'mocha',\r\n    postprocessor: wallabyPostprocessor,\r\n    env: {\r\n      kind: 'electron'\r\n    },\r\n    bootstrap: function (wallaby) {\r\n      var mocha = wallaby.testFramework;\r\n      mocha.timeout(20000);\r\n      window.__moduleBundler.loadTests();\r\n      window.expect = chai.expect;\r\n    }\r\n  };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nAtom v1.x\r\nElectron-prebuilt v0.37.2\r\n\r\n### OS name and version\r\n\r\nOSX\r\n\r\n\r\n"}}