Skip to content

"require" option doesn't load precompiled helpers #1506

Closed
@novemberborn

Description

@novemberborn

From #1187 (comment), when test helpers are specified in the "require" option, AVA does not load the precompiled file.

The problem seems to be that we install our loader too late:

adapter.installPrecompilerHook();

I suspect that it might be OK if we move that line up before:

(opts.require || []).forEach(require);

We need to test how this interacts with babel-register, and add an integration test to verify we require the precompiled helpers.

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