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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: Add an example showing mocha+browser and mocha+node, where node imports JSDOM and browser uses global.window #82

Open
iambumblehead opened this issue Nov 21, 2023 · 1 comment
Labels
status: accepting prs Please, send a pull request to resolve this! 馃檹 type: feature New feature or request

Comments

@iambumblehead
Copy link

Is there a formula for using mocha+browser and mocha+node, where tests import JSDOM for node environments only and use global window for browser environments?

Thanks in advance for any advice or help

@JoshuaKGoldberg JoshuaKGoldberg transferred this issue from mochajs/mocha Feb 7, 2024
@JoshuaKGoldberg JoshuaKGoldberg added type: feature New feature or request status: accepting prs Please, send a pull request to resolve this! 馃檹 labels Feb 7, 2024
@JoshuaKGoldberg JoshuaKGoldberg changed the title Is there a formula for using mocha+browser and mocha+node, where node imports JSDOM and browser uses global.window? 馃殌 Feature: Add an example showing mocha+browser and mocha+node, where node imports JSDOM and browser uses global.window Feb 7, 2024
@JoshuaKGoldberg
Copy link
Member

This sounds like a great example to add 馃槃. Transferred over to the appropriate repo and switched from type: question to type: feature. Cheers! 馃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 馃檹 type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants