Closed donkeyDau closed 3 years ago
@ava/babel
only compiles test files. It looks like that does support optional chaining (though it hasn't been updated in a while for newer proposals).
I think you're better off without @ava/babel
and relying on @babel/register
to compile everything on the fly. But then Babel needs to be configured to compile optional chaining.
I've just started using AVA and can't get my tests run when an import source function uses optional chaining.
I get this error:
My
package.json
looks like:I'm pretty sure I'm missing something obvious but I couldn't get a grip on it so far ...