-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
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
- https://jestjs.io/docs/api#describeonlyname-fn
- https://jestjs.io/docs/api#testonlyname-fn-timeout (alias to
it.only
) - https://vitest.dev/api/#describe-only
- https://vitest.dev/api/#test-only (alias to
it.only
)
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
marvinhagemeister and Eommbenjamingr
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.