Skip to content
Advertisement

Tag: ava

ES6 import for ‘ava’ test not working

I followed the docs to create my first test using ava but it doesn’t seem to run properly. I get the error below. I tried adding import ‘babel-register’; at the top of the file, and it works, but only if I run one specific test file. e.g. ava ./test/helpers/test_helper.js. Running ava on its own though… results in the import error

Advertisement