Skip to content

[Feature]: Allow for customizing include via a CLI param (--include) #383

@devlato

Description

@devlato

What problem does this feature solve?

Currently, the include directive can only be overridden via the config file, not through CLI arguments.

What does the proposed API look like?

The user shoud be able to customize the unit test file name regexps/globs via CLI params, to make this consistent with other test runners.

npx rstest run --include src/**/*.tests.tsx --include src/**/*.specs.tsx

This makes migration to rstest easier for projects that already follow their own naming convention for test files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions