Skip to content

when run in browser, how will Mocha resolve plugins? #1

@boneskull

Description

@boneskull

Currently you're expected to get a function from any given (non-bundled) plugin, and pass that into mocha.use(). But if we're bundling plugins for the browser, they can attach themselves to a global namespace (ostensibly window.mocha). I think this is reasonable.

I'm trying to implement but it's currently broken; see wip branch

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