{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/647","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/647/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/647/events","html_url":"https://github.com/wallabyjs/public/issues/647","id":160047476,"number":647,"title":"Failed to parse '/allFiles.jsx' with es7 stage-0 syntax (static proptypes)","user":{"login":"rpmonteiro","id":7824615,"avatar_url":"https://avatars.githubusercontent.com/u/7824615?v=3","gravatar_id":"","url":"https://api.github.com/users/rpmonteiro","html_url":"https://github.com/rpmonteiro","followers_url":"https://api.github.com/users/rpmonteiro/followers","following_url":"https://api.github.com/users/rpmonteiro/following{/other_user}","gists_url":"https://api.github.com/users/rpmonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/rpmonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpmonteiro/subscriptions","organizations_url":"https://api.github.com/users/rpmonteiro/orgs","repos_url":"https://api.github.com/users/rpmonteiro/repos","events_url":"https://api.github.com/users/rpmonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/rpmonteiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-13T21:19:30Z","updated_at":"2016-06-14T10:12:53Z","closed_at":"2016-06-14T01:59:45Z","body":"### Issue description or question\r\nFailed to parse files that contain ``static proptypes = {...}`` which is a es7 stage-0 feature.\r\n`` SyntaxError: Unexpected token (11:19) ``\r\n\r\nWallaby throws 2 errors of the kind, and then stops. It seems to randomly load the files, so the files that error are generally different most of the times. I have dozens of files that use ``static proptypes = {...}``\r\n\r\nObiWan @ArtemGovorov , help this team get through this ordeal so we can buy our licenses and live a happy life full of tests.\r\n\r\n### .babelrc configuration file\r\n\r\n```json\r\n{\r\n  \"presets\": [\"es2015\", \"react\", \"babel-preset-stage-0\"],\r\n  \"plugins\": [\"transform-class-properties\"],\r\n  \"env\": {\r\n    \"production\": {\r\n      \"plugins\": [\r\n        \"transform-react-constant-elements\",\r\n        \"transform-react-inline-elements\",\r\n        \"transform-class-properties\"\r\n      ]\r\n    }\r\n  }\r\n}\r\n\r\n```\r\n\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\nvar babel = require('babel-core');\r\n\r\nmodule.exports = function (wallaby) {\r\n  return {\r\n    files: [\r\n      'src-cls/**/*.js*',\r\n      {pattern: 'src-cls/**/__tests__/*', ignore: true},\r\n      {pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false},\r\n      {pattern: 'node_modules/react/dist/react-with-addons.js', instrument: false}\r\n    ],\r\n\r\n    tests: [\r\n      'src-cls/**/__tests__/*.js'\r\n    ],\r\n\r\n    compilers: {\r\n      '**/*.js': wallaby.compilers.babel()\r\n    },\r\n    \r\n    env: {\r\n      type: 'node', runner: 'node'\r\n    },\r\n    \r\n    testFramework: 'mocha',\r\n    \r\n    debug: true,\r\n    setup: function () {\r\n      require('babel-polyfill');\r\n    }\r\n  };\r\n};\r\n```\r\n\r\n### webpack configuration file\r\n```javascript\r\n'use strict';\r\nconst webpack = require('webpack');\r\nconst HtmlWebpackPlugin = require('html-webpack-plugin');\r\nconst npmPackage = require('./package.json');\r\nconst host = '0.0.0.0';\r\nconst port = 3000;\r\n\r\nconst config = {\r\n  entry: [\r\n    'babel-polyfill',\r\n    './src-cls/app'\r\n  ],\r\n\r\n  output: {\r\n    path:       './dist-cls',\r\n    publicPath: `http://${host}:${port}/`,\r\n    filename:   'app.js'\r\n  },\r\n  \r\n  resolve: {\r\n    root: './src-cls',\r\n    alias: {},\r\n    extensions: ['', '.js', '.jsx'],\r\n    modulesDirectories: npmPackage._moduleDirectories || []\r\n  },\r\n  \r\n  module: {\r\n    loaders: [\r\n      {\r\n        test:    /\\.jsx?$/,\r\n        loader: 'react-hot!babel?sourceMap&plugins[]=transform-runtime&presets[]=es2015,presets[]=stage-0,presets[]=react',\r\n        exclude: /node_modules/\r\n      },\r\n      {\r\n        test:    /\\.css$/,\r\n        loader:  'style!css?sourceMap!postcss',\r\n        exclude: /node_modules/\r\n      },\r\n      {\r\n        test:    /\\.(png|jpg|gif|svg)$/,\r\n        loader:  'url?limit=8192&name=images/[name].[ext]',\r\n        exclude: /node_modules/\r\n      },\r\n      {\r\n        test:    /\\.(eot|ttf|woff|woff2)$/,\r\n        loader:  'url?limit=8192&name=fonts/[name].[ext]',\r\n        exclude: /node_modules/\r\n      }\r\n    ]\r\n  },\r\n  \r\n  postcss: function (webpack) {\r\n    return [\r\n      require('postcss-import')({addDependencyTo: webpack, map: true}),\r\n      require('postcss-url')(),\r\n      require('postcss-cssnext')({map: true}),\r\n      // require('postcss-browser-reporter')(),\r\n      require('postcss-reporter')()\r\n    ];\r\n  },\r\n\r\n  plugins: [\r\n    new webpack.DefinePlugin({\r\n      'process.env': {NODE_ENV: JSON.stringify('development')}\r\n    }),\r\n    new webpack.DefinePlugin({\r\n      VERSION: JSON.stringify(npmPackage.version)\r\n    }),\r\n    new HtmlWebpackPlugin({\r\n      template: 'src-cls/index.html',\r\n      title: 'cls',\r\n      inject: 'body'\r\n    })\r\n  ],\r\n\r\n  devServer: {\r\n    contentBase: './src-cls',\r\n    cached:      false,\r\n    colors:      true,\r\n    port:        port,\r\n    host:        host,\r\n    noInfo:      false,\r\n    quiet:       false,\r\n    historyApiFallback: true,\r\n\r\n    stats: {\r\n      hash:    false,\r\n      colors:  true,\r\n      cached:  false,\r\n      version: false,\r\n      exclude: [\r\n        // /node_modules\\/(react|dev-server|core-js|react-router|babel-core|reflux|history)\\//,\r\n        // /webpack|babel-runtime/\r\n      ]\r\n    }\r\n  }\r\n};\r\n\r\nmodule.exports = config;\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nAtom v1.8.0\r\n\r\n### OS name and version\r\nOSX\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wallabyjs/public/issues/comments/225838543","html_url":"https://github.com/wallabyjs/public/issues/647#issuecomment-225838543","issue_url":"https://api.github.com/repos/wallabyjs/public/issues/647","id":225838543,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T10:12:53Z","updated_at":"2016-06-14T10:12:53Z","body":"How does your command line for mocha (without wallaby) looks like?\r\nAnyway, your wallaby config looks ok to me and I can't see anything wrong with it, so I'll need more context to be able to tell what's wrong. Please create a small sample repo demonstrating the issue and we'll take it from there."}}
{"actor":{"display_login":"ArtemGovorov"}}