Skip to content

Support loading .mjs test files #2344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
novemberborn opened this issue Jan 5, 2020 · 1 comment · Fixed by #2382
Closed

Support loading .mjs test files #2344

novemberborn opened this issue Jan 5, 2020 · 1 comment · Fixed by #2382
Labels

Comments

@novemberborn
Copy link
Member

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant