Skip to content

Enable jest/no-conditional-expect - #449

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

rekmarks merged 4 commits into
developfrom
enable-no-conditional-expect

Conversation

@rekmarks

Copy link
Copy Markdown
Contributor

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

@Gudahtt Gudahtt left a comment

Copy link
Copy Markdown
Member

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
amitabh94 pushed a commit to amitabh94/core that referenced this pull request Jun 16, 2026
* 14.0.0

* update `CHANGELOG.md` entries

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Michele Esposito <michele@esposito.codes>
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