avajs / ava

Node.js test runner that lets you develop with confidence 🚀
MIT License
20.74k stars 1.41k forks source link

Support loading .mjs test files #2344

Closed novemberborn closed 4 years ago

novemberborn commented 4 years ago

AVA now recognizes .mjs test files, but refuses to load them. We should!

See the code here: https://github.com/avajs/ava/blob/54ff13036517e7dff3d95b7afe4e70254b1dbe7a/lib/worker/subprocess.js#L131:L137

Of course import() is only available on Node.js 13. This should fail gracefully on Node.js 10 and 12.

novemberborn commented 4 years ago

This is now available in AVA 3.3.0. Thank you @arlac77!