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

Chore: Remove missing global fail() function from tests #60

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

pileks
Copy link
Contributor

@pileks pileks commented Jul 17, 2023

With Jest's newish circus runner, the global fail() function no longer exists, although it is present in @types/jest, due to its presence in the jest-jasmine2 runner which has been replaced by circus as the default runner.

In this PR, I have opted to clean up our tests by removing calls to fail() and replacing them with proper assertions.

This also simplifies our testing infrastructure, making it more resilient to changes in our Result type by leveraging comparison assertions using ResultOK and ResultErr.

@dOrgJelli dOrgJelli merged commit 009a54f into origin-dev Jul 18, 2023
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.

2 participants