{"action":"closed","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/1195","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/1195/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/1195/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/1195/events","html_url":"https://github.com/wallabyjs/public/issues/1195","id":236218901,"number":1195,"title":"not recognizing arrow function () => {} resulting unexpected token ')'","user":{"login":"cannymak","id":12945396,"avatar_url":"https://avatars2.githubusercontent.com/u/12945396?v=3","gravatar_id":"","url":"https://api.github.com/users/cannymak","html_url":"https://github.com/cannymak","followers_url":"https://api.github.com/users/cannymak/followers","following_url":"https://api.github.com/users/cannymak/following{/other_user}","gists_url":"https://api.github.com/users/cannymak/gists{/gist_id}","starred_url":"https://api.github.com/users/cannymak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cannymak/subscriptions","organizations_url":"https://api.github.com/users/cannymak/orgs","repos_url":"https://api.github.com/users/cannymak/repos","events_url":"https://api.github.com/users/cannymak/events{/privacy}","received_events_url":"https://api.github.com/users/cannymak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-15T14:55:11Z","updated_at":"2017-06-16T01:52:50Z","closed_at":"2017-06-16T01:52:50Z","body":"### Issue description or question\r\nSyntax Error: Unexpected token ')' not understanding arrow function ( describe('ErrorComponent', () => { ) when setting up wallaby with angular 2.\r\n\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\nvar wallabyWebpack = require('wallaby-webpack');\r\nvar path = require('path');\r\n\r\nvar compilerOptions = Object.assign(\r\n  require('./tsconfig.json').compilerOptions,\r\n  require('./src/tsconfig.spec.json').compilerOptions);\r\n\r\nmodule.exports = function (wallaby) {\r\n\r\n  var webpackPostprocessor = wallabyWebpack({\r\n    entryPatterns: [\r\n      'src/app/**/*.spec1.js'\r\n    ],\r\n\r\n    module: {\r\n      loaders: [\r\n        { test: /\\.css$/, loader: 'raw-loader' },\r\n        { test: /\\.html$/, loader: 'raw-loader' },\r\n        { test: /\\.ts$/, loader: '@ngtools/webpack', include: /node_modules/, query: { tsConfigPath: 'tsconfig.json' } },\r\n        { test: /\\.js$/, loader: 'angular2-template-loader', exclude: /node_modules/ },\r\n        { test: /\\.json$/, loader: 'json-loader' },\r\n        { test: /\\.styl$/, loaders: ['raw-loader', 'stylus-loader'] },\r\n        { test: /\\.less$/, loaders: ['raw-loader', 'less-loader'] },\r\n        { test: /\\.scss$|\\.sass$/, loaders: ['raw-loader', 'sass-loader'] },\r\n        { test: /\\.(jpg|png)$/, loader: 'url-loader?limit=128000' }\r\n      ]\r\n    },\r\n\r\n    resolve: {\r\n      extensions: ['.js', '.ts'],\r\n      modules: [\r\n        path.join(wallaby.projectCacheDir, 'src/app'),\r\n        path.join(wallaby.projectCacheDir, 'src'),\r\n        'node_modules'\r\n      ]\r\n    }\r\n  });\r\n\r\n  return {\r\n    files: [\r\n      { pattern: 'src/**/*.ts', load: false },\r\n      { pattern: 'src/**/*.d.ts', ignore: true },\r\n      { pattern: 'src/**/*.css', load: false },\r\n      { pattern: 'src/**/*.less', load: false },\r\n      { pattern: 'src/**/*.scss', load: false },\r\n      { pattern: 'src/**/*.sass', load: false },\r\n      { pattern: 'src/**/*.styl', load: false },\r\n      { pattern: 'src/**/*.html', load: false },\r\n      { pattern: 'src/**/*.json', load: false },\r\n      { pattern: 'src/**/*spec.ts', ignore: true }\r\n    ],\r\n\r\n    tests: [\r\n      { pattern: 'src/app/**/*.spec1.ts', load: false }\r\n    ],\r\n\r\n    testFramework: 'jasmine',\r\n\r\n    compilers: {\r\n      '**/*.ts': wallaby.compilers.typeScript(compilerOptions)\r\n    },\r\n\r\n    middleware: function (app, express) {\r\n      var path = require('path');\r\n      app.use('/favicon.ico', express.static(path.join(__dirname, 'src/favicon.ico')));\r\n      app.use('/assets', express.static(path.join(__dirname, 'src/assets')));\r\n    },\r\n\r\n    env: {\r\n      // params: {\r\n      //   runner: '--harmony --harmony_arrow_functions'\r\n      // }\r\n    },\r\n\r\n    postprocessor: webpackPostprocessor,\r\n\r\n    setup: function () {\r\n      window.__moduleBundler.loadTests();\r\n    },\r\n\r\n    debug: true\r\n  };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nWebStorm v?\r\nIntelliJ IDEA v?\r\nVisual Studio v? 1.13.1\r\nAtom v1.?\r\nVisual Studio Code v1.? 1.13.1\r\nSublime Text v3 build ?\r\n\r\n### OS name and version\r\n\r\nWindows\r\nOSX - macOS Sierra version 10.12.5\r\nLinux\r\n\r\n"}}
{"actor":{"display_login":"ArtemGovorov"}}