When running tests for a react-redux application with Karma, they were all passing with webkit but failing with phantomJS with the following error:
TypeError: undefined is not a constructor (evaluating 'Object.assign({} [...]
This would also crash the test runner.
Installing and configuring phantomjs-polyfill-object-assign fixed the issue.
See https://www.npmjs.com/package/phantomjs-polyfill-object-assign
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With