1.0.0-beta.29
https://github.com/Kritten/vue-utils-error
[].flat(); in the generated example.spec.js.Or simply use my repo and execute the tests.
The tests should be valid indicating jest could properly parse the inserted statement.
The tests fail with TypeError: [].flat is not a function
babel-jest was setup by the cli with '^. \\.jsx?$': 'babel-jest' in the jest.config.js.
My tests failed while jest was executing/testing a method in my application containing the Array.flat function.
Your Node version doesn't support Array.prototype.flat. Support was added in Node 11. Upgrading to 12 or polyfilling will solve your issue.
Most helpful comment
Your Node version doesn't support
Array.prototype.flat. Support was added in Node 11. Upgrading to 12 or polyfilling will solve your issue.