Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhancement: Add the ability to skip valid or invalid tests #7481

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: rule-testerIssues related to the @typescript-eslint/rule-tester package
@azat-io

Description

@azat-io

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

rule-tester

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

I would like to be able to skip valid or invalid scenarios in some tests. In some cases, such examples are simply not needed.

Fail

importnoLetRulefrom'../rule/no-let'ruleTester.run(`disallow to use let`,rule,{valid:[],invalid:[`let a = 1`],},)

This test is currently crashing with an error:Error: No test found in suite valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestpackage: rule-testerIssues related to the @typescript-eslint/rule-tester package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp