Closed
Description
Is this a bug report?
Might be
Environment
- node v6.12.3
- react-scripts v1.0.17
Steps to Reproduce
Add this test
it('run without crashing', () => {
const arrayOfObjects = [{ awesome: true }]
const [{ awesome, ...rest}] = arrayOfObjects
expect(true).toBe(true)
});
Expected Behavior
No error
Actual Behavior
const [{ awesome, ...rest }] = arrayOfObjects;
^^^
SyntaxError: Unexpected token ...