Skip to content

Comments

feat(no-conditional-in-test): only report optional chaining when allowOptionalChaining is false#1934

Merged
G-Rath merged 1 commit intojest-community:mainfrom
christopher-buss:optional-chaining-option
Feb 15, 2026
Merged

feat(no-conditional-in-test): only report optional chaining when allowOptionalChaining is false#1934
G-Rath merged 1 commit intojest-community:mainfrom
christopher-buss:optional-chaining-option

Conversation

@christopher-buss
Copy link
Contributor

@christopher-buss christopher-buss commented Feb 15, 2026

As per the comments in this issue, I have implemented this as an option so that it is no longer the default.

Resolves #1928 (again)

@G-Rath G-Rath changed the title feat(no-conditional-in-test): add allowOptionalChaining option feat(no-conditional-in-test): only report optional chaining when allowOptionalChaining is false Feb 15, 2026
@G-Rath G-Rath merged commit 3f5751e into jest-community:main Feb 15, 2026
25 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 15, 2026
# [29.15.0](v29.14.0...v29.15.0) (2026-02-15)

### Features

* **no-conditional-in-test:** only report optional chaining when `allowOptionalChaining` is false ([#1934](#1934)) ([3f5751e](3f5751e))
@github-actions
Copy link

🎉 This PR is included in version 29.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@christopher-buss christopher-buss deleted the optional-chaining-option branch February 15, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[no-conditional-in-test] - Ban optional Chaining

2 participants