Skip to content

Mocha docs: Explain differences between runTests and mocha #2926

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

Open
atjn opened this issue Apr 6, 2025 · 0 comments
Open

Mocha docs: Explain differences between runTests and mocha #2926

atjn opened this issue Apr 6, 2025 · 0 comments

Comments

@atjn
Copy link

atjn commented Apr 6, 2025

Under "Writing Tests / HTML Tests", you explain that to use Mocha, one must import the runTests function and run the tests in that.
Link to page: https://modern-web.dev/docs/test-runner/writing-tests/html-tests/

Under "Test Frameworks / Mocha / Writing HTML tests", you explain that to use Mocha, one must import the mocha object along with sessionFinished and sessionFailed and use those to run the tests.
Link to page: https://modern-web.dev/docs/test-runner/test-frameworks/mocha/#writing-html-tests

So which one should I use? And what are the differences? There is no documentation explaining any of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant