Skip to content

Unit testing functions that use workerize'd importsΒ #48

Closed
@wbobeirne

Description

@wbobeirne

Has anyone come up with a way to write unit tests (e.g. jest, mocha) for functions that user workerize-loader imports? It'd be great if there was an easy way to replace the default workerize-loader behavior with a simple promise wrapper when in a testing environment. Any advice would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions