If you are interested in using jest with es6 syntax, you pay run into issues with the spread operator:

As you can see, jest doesnt seem to like ES6’s awesome spread operator ...data. After an hour or so, I found the solution. First install stage-2

npm install --save-dev babel-preset-stage-2


Finally update your .babelrc

{
"presets": ["es2015", "react", "stage-2"]
}


\$ jest SubmissionActions-tests.js