Skip to content

vitest/valid-describe-callback does not support options as second parameter #885

@svaj

Description

@svaj

eslint-plugin-vitest v0.5.4 does not support options as the second parameter of describe(). Here is the rule in the docs. Here's an example of using options in describe in 4.1.2 of vitest.
The eslint plugin forces the second parameter of describe to be a function. Therefore the linter will fail if the options are passed as the second parameter.

I found #542 going over this exact functionality, this appears to be a regression.

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