I have a test that imports a React component that uses JSX syntax. I know that straight up JS will throw an error when it sees <div>, so I've tried using the reactify transform by running the test with node my-test -t reactify, following the instructions.
However, that <div> is still breaking things, despite the effort at using the transform: SyntaxError: Unexpected token <
Should this be working? Or is there some specific problem with JSX so that just flagging the transform is not enough?
I have a test that imports a React component that uses JSX syntax. I know that straight up JS will throw an error when it sees
<div>
, so I've tried using the reactify transform by running the test withnode my-test -t reactify
, following the instructions.However, that
<div>
is still breaking things, despite the effort at using the transform:SyntaxError: Unexpected token <
Should this be working? Or is there some specific problem with JSX so that just flagging the transform is not enough?
Thanks.