Skip to content

no-ignored-test-files rule gives false alerts in monorepo setups #212

@revelt

Description

@revelt

Hi all,

Currently, if the setup is a monorepo, packages are located two levels deeper than normal, for example in packages/<name>/. This throws off rule ava/no-ignored-test-files:

monorepo_subdirectories

We should make the algorithm smarter and make it detect test is in **/test/**/*.js as opposed to strict test/**/*.js.

We already check **/*.test.js, it just does not cover the folder case mentioned above.

Proposal: turn test/**/*.js into **/test/**/*.js

Also, what to do if test.js is in monorepo package's root — we also might need **/test.js.

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