TestCafé + React JSX error (unexpected Token)
问题 I am new to test café, and am seeing some errors in my React project. All tests seem to be fine, except whenever it hits JSX code in a helper method, it gives a SyntaxError. SyntaxError: .../_helpers.js: Unexpected token (779:29) 777 | 778 | export const customLegend = (data) => { > 779 | if (isEmpty(data)) return (<div />); SyntaxError: .../_helpers.js: Unexpected token (710:4) 708 | } = props || {}; 709 | return ( > 710 | <div | ^ 711 | transform={`translate(${x},${y})`} I have not found a