Skip to content

Add option to make describe.concurrent a default, instead of describe #3573

@o-alexandrov

Description

@o-alexandrov

Clear and concise description of the problem

Instead of setting describe.concurrent, it'd be great to have an option to set it as a default.

Suggested solution

Add config option --concurrent

Additional context

Currently, if a project wants to enforce use of concurrent for all tests, it's practically impossible to do so, because:

  • vitest doesn't have a config option to set it globally
  • if a project adds a wrapper and asks developers to use this wrapper everywhere, there could still be instances when a developer would forget to do so by importing a describe from vitest or use a globally provided describe
  • there is no such ESLint rule in eslint-plugin-vitest

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions