create-react-app: Rest properties are broken with Jest + node v6
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 ...
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (12 by maintainers)
This is out in
react-scripts@1.1.0
! Please let us know if something doesn’t quite work. https://github.com/facebookincubator/create-react-app/releases/tag/v1.1.0