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 assert.unreachable #3321

Closed
4 tasks done
benmccann opened this issue May 8, 2023 · 0 comments · Fixed by #3556
Closed
4 tasks done

Add assert.unreachable #3321

benmccann opened this issue May 8, 2023 · 0 comments · Fixed by #3556
Labels
enhancement New feature or request pr welcome
Milestone

Comments

@benmccann
Copy link
Contributor

benmccann commented May 8, 2023

Clear and concise description of the problem

I'm trying to migrate from uvu to vitest and noticed that there's no assert.unreachable

Suggested solution

https://github.com/lukeed/uvu/blob/56e1cb25ecd76cbf5cd3fd28c7a4c07db405c5c3/src/assert.js#L48

Alternative

Just do throw new Error();. Feel free to close this issue if that's preferred

Additional context

No response

Validations

@sheremet-va sheremet-va added enhancement New feature or request pr welcome labels May 8, 2023
@sheremet-va sheremet-va added this to the 0.32.1 milestone Jun 16, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants