Skip to content

Mocha docs: Explain differences between runTests and mocha #2926

Open
@atjn

Description

@atjn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions