Skip to content

docs(test-runner): missing example and explain about how to mock error #52357

Description

@AugustinMauroy

Affected URL(s)

https://nodejs.org/docs/latest-v20.x/api/test.html#mocking

Description of the problem

On docs there missing explains about how to mock Error and catch it with throws.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions