Skip to content

Enable jest/no-conditional-expect#449

Merged
rekmarks merged 4 commits intodevelopfrom
enable-no-conditional-expect
Apr 26, 2021
Merged

Enable jest/no-conditional-expect#449
rekmarks merged 4 commits intodevelopfrom
enable-no-conditional-expect

Conversation

@rekmarks
Copy link
Copy Markdown
Member

Following the closure of #423, this PR enables jest/no-conditional-expect and fixes all related errors.

I had to add manual type guards in some places per @Gudahtt's suggestion, since TypeScript does not understand that expect(value).not.toBeUndefined() guarantees that value is not undefined.

@rekmarks rekmarks requested a review from a team as a code owner April 23, 2021 17:08
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rekmarks rekmarks merged commit bbcd805 into develop Apr 26, 2021
@rekmarks rekmarks deleted the enable-no-conditional-expect branch April 26, 2021 19:20
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Following the closure of #423, this PR enables `jest/no-conditional-expect` and fixes all related errors.

I had to add manual type guards in some places per @Gudahtt's suggestion, since TypeScript does not understand that `expect(value).not.toBeUndefined()` guarantees that `value` is not undefined.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Following the closure of #423, this PR enables `jest/no-conditional-expect` and fixes all related errors.

I had to add manual type guards in some places per @Gudahtt's suggestion, since TypeScript does not understand that `expect(value).not.toBeUndefined()` guarantees that `value` is not undefined.
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