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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update isSkippedFile, replace file absolute match w/ regex match #48

Merged
merged 2 commits into from Oct 8, 2022

Conversation

parasyris
Copy link
Contributor

@parasyris parasyris commented Oct 1, 2022

Hey 馃憢 , I noticed an edge case issue on isFileSkipped. The run flag is accepting a regex but the
isFileSkipped is doing an absolute match. I have seen there is a relevant fix but probably missed this point
9c6ad4b.

So I changed to regex match and added a unit test.

Did also a minor change in testSkipped, shouldn't affect anything just moved the regex checking if a test
is skipped at the end just to defer the regex matching.

@gkampitakis
Copy link
Owner

Thanks a lot for the contribution. Yup missed that.

Seems you need to run make format.

snaps/skip_test.go Outdated Show resolved Hide resolved
@gkampitakis gkampitakis merged commit 7ec5ef9 into gkampitakis:main Oct 8, 2022
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