Skip to content

test_runner: support describe / it only shorthands #46562

Description

@richiemccoll

What is the problem this feature will solve?

A common shorthand when writing tests is to be able to quickly run isolated blocks of tests using describe.only and it.only.

Examples

Currently the test runner doesn't support these shorthands.

  • TypeError: describe.only is not a function
  • error: 'it.only is not a function'

What is the feature you are proposing to solve the problem?

Use a consistent approach with the other describe/it shorthands (skip and todo) and add another for only.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.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