Skip to content

False-positive jest/no-disabled-tests #775

@fabb

Description

@fabb

In a non-test file (trackingXiti.ts), I have a function like this:

const mapPageViewEventName = (...) => {
    ....
    const map = xitiViewMap(...)
    ...
}

The rule warns about the line with the xitiViewMap function, probably because it starts with xit.

  1. Shouldn't the jest rules only run on *.test.{js,tsx?} files?
  2. The rule should match xit( and not xitSomethingElse(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions