Skip to content

Support loading .mjs test files #2344

Closed
@novemberborn

Description

@novemberborn

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions