Skip to content

Promisify breaks resolve #151

Closed
Closed
@reggi

Description

@reggi

I have an example of tests passing (can't publish at the moment) with require.resolve and with resolve as a callback, but when I wrap resolve in const resolveAsync = Promise.promisify(resolve) for some reason the tests that worked are failing. I've also implemented my own wrapped promise and some of tests pass, and others fail, specifically cases where there's a package.json resolve.

Any ideas why this package is un-promisify-able, and potential ways around it?

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