Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boneskull opened this issue Apr 8, 2016 · 0 comments
Open

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

boneskull opened this issue Apr 8, 2016 · 0 comments

Comments

@boneskull
Copy link
Collaborator

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

@boneskull boneskull changed the title determine how mocha when run in browser will resolve plugins when run in browser, how will resolve Mocha plugins? Apr 8, 2016
@boneskull boneskull changed the title when run in browser, how will resolve Mocha plugins? when run in browser, how will Mocha resolve plugins? Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant