Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for file path patterns #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carlosflorencio
Copy link
Contributor

When running against a file require("neotest").run.run(path), the file type is file and we should filter the test runner to target only that file (else the pattern will be --testNamePattern='.*' == all tests).

This change makes the test runner pattern --testPathPattern='filename.ts' when the type is file.

@haydenmeade
Copy link
Collaborator

LGTM probably just need to fix up UT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants