Skip to content

Commit

Permalink
Disable jest/no-conditional-in-test for conditional rendering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Sep 24, 2024
1 parent 0770723 commit d789315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jsx-runtime.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@ describe('automatic runtime', () => {
test('conditional rendering', () => {
expect(
<div>
{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */}
{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, jest/no-conditional-in-test */}
{true && <span>shown</span>}
{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */}
{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, jest/no-conditional-in-test */}
{false && <span>hidden</span>}
{null}
{undefined}
Expand Down

0 comments on commit d789315

Please sign in to comment.