Error: [BABEL] ./tests/index.js:
As of v7.0.0-beta.55, we've removed Babel's Stage presets.
Please consider reading our blog post on this decision at
https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets
for more details. TL;DR is that it's more beneficial in the
long run to explicitly add which proposals to use.
Also I'm having trouble supporting JSX in test files with the suggested configuration:
ava
✖ No tests found in tests/index.js
─
Uncaught exception in tests/index.js
SyntaxError: Unexpected token '<'
› Loader.moduleStrategy (internal/modules/esm/translators.js:88:18)
› link (internal/modules/esm/module_job.js:41:21)
─
1 uncaught exception
The docs mention the stage preset:
Babel presets have been deprecated since 2018 so I get:
Also I'm having trouble supporting JSX in test files with the suggested configuration: