Skip to content

vitest/padding-around-test-blocks should have config option 'additionalTestBlockFunctions' #934

Description

@Schoude

Feature Request

As the user can extend the native test or it functions (i.e to inject mock service worker) with custom names, this rule should also have an option "additionalTestBlockFunctions" like the rule vitest/no-standalone-expect

Possible usage

        "vitest/padding-around-test-blocks": [
          "deny",
          {
            "additionalTestBlockFunctions": ["myCustomTest"]
          }
        ]

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions