Skip to content

[Bug]: Custom wrapper functions are not getting resolved #398

@Lightning00Blade

Description

@Lightning00Blade

In the code I am working on we extensively use wrapper function to set up environment correctly for unit tests.

Example of such test.

The problem seem is that with the new import/interface resolution.
I was expecting to be able to set the interface on the custom rule to exports and that it will work as previously, but i the code it explicitly looks for an import from mocha which is wrong in my opinion.

I quickly hacked together a PR that resolves the issue Lightning00Blade#1.
I also added some test there to represent the above functionality.

Do you think you would accept such change or how can we go about fixing this issue.

Note: Reverting to 10.5.0 make this error report.

I am happy to provide a PR, if I get get guidance on what the best approach for this would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions