Skip to content

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.

3 participants