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

Allow you to call skip twice with the same name #30

Merged
merged 7 commits into from
Jan 7, 2024
Merged

Allow you to call skip twice with the same name #30

merged 7 commits into from
Jan 7, 2024

Conversation

mansona
Copy link
Member

@mansona mansona commented Jan 5, 2024

Before this change calling skip twice with the same name would throw an error:

no variant named skipMe available to skip. Found variants: hello1, hello2

because the first time you called .skip() it removed it from the list of variants and the second time it would fail. This PR changes it so that it sets a flag skipped so the second time you call .skip() is essentially a no-op and won't fail.

This change is to allow you to skip variants globally without needing to also delete any specific skips you have in tests (see this commit for an example)

@mansona mansona requested a review from a team January 5, 2024 14:49
@mansona mansona added the enhancement New feature or request label Jan 5, 2024
@ef4
Copy link
Collaborator

ef4 commented Jan 5, 2024

There's a lot of yarn still in the test suite.

Copy link
Collaborator

@ef4 ef4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to replace all the yarn calls in the test suite with pnpm, then this is looking good.

@mansona
Copy link
Member Author

mansona commented Jan 6, 2024

@ef4 I got rid of all the yarn 👍 🧶

@ef4 ef4 merged commit eb9a958 into main Jan 7, 2024
9 checks passed
@github-actions github-actions bot mentioned this pull request Jan 7, 2024
@mansona mansona deleted the double-skip branch January 8, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants