Skip to content

ava 4.0.1 does not work with non-native ESM, i.e., esm shim #2951

Closed
@tcollinsworth

Description

@tcollinsworth

@tcollinsworth AVA 4 works just fine with CJS. Being a Node.js test runner, for ESM support we rely on Node.js' standard behavior.

Originally posted by @novemberborn in #2293 (comment)

@novemberborn Upgrading ava from 3.15.0 to 4.0.1 with esm-wallaby shim for optional-chaining support throws:

SyntaxError: Cannot use import statement outside a module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions