Skip to content

Commit

Permalink
feat: add ITL support for RTL v12+
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipoliko committed Sep 2, 2024
1 parent a7b4678 commit f15d759
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ describe('Card', () => {

const { container } = render(<Card {...props} />);

expect(container).toMatchSnapshot();
expect(container.firstChild).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Card can render 1`] = `
<div>
<div
class="card"
<div
class="card"
>
<a
class="card-title"
href="https://www.seznam.cz"
rel="noreferrer"
target="_blank"
>
<a
class="card-title"
href="https://www.seznam.cz"
rel="noreferrer"
target="_blank"
>
<h3>
Test card
»
</h3>
</a>
<p
class="card-content"
>
Some content of the card.
</p>
</div>
<h3>
Test card
»
</h3>
</a>
<p
class="card-content"
>
Some content of the card.
</p>
</div>
`;
2 changes: 1 addition & 1 deletion packages/testing-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@ima/react-page-renderer": ">=19.0.0",
"@testing-library/dom": ">=10.0.0",
"@testing-library/jest-dom": ">=6.0.0",
"@testing-library/react": ">=16.0.0"
"@testing-library/react": ">=12.0.0"
},
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit f15d759

Please sign in to comment.