1
create-react-appの実行後にAVAを設定しようとしています。 this gistのチュートリアルとリファレンスがありますが、見つけて試しましたが、JSX <App />
要素にはエラーが発生し続けます。誰でもその要点が間違っているのを知っていますか? npm run test
の全出力:AVAテストランナーのセットアップ(Create React App Boilerplate)
[email protected] test /react-with-ava
cross-env NODE_ENV=test ava
1 exception
Uncaught Exception
SyntaxError: /react-with-ava/src/App.test.js: Unexpected token (8:18)
SyntaxError: /react-with-ava/src/App.test.js: Unexpected token (8:18)
6 | test('renders without crashing', t => {
7 | const div = document.createElement('div');
8 | ReactDOM.render(<App />, div);
| ^
9 | });