Skip to content

v26.4.2 is treating any file including /regex/.test(arg) as a test file #1128

@blaenk

Description

@blaenk

Updated to 26.4.2 through renovate bot and noticed my CI failed because this linter was running on non-test files.

I came across this issue #555 which explains that anything that uses jest testing functions is treated as a test file.

The non-test files in question are simply doing regex matching of the kind e.g. /regex/.test(arg), which I would expect to not trigger this heuristic to treat it as a test file.

I reverted to 26.3.0 for now without any other changes and it's working. Just wanted to give you a heads up.

Thanks for working on this linter!

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