Skip to content

Commit

Permalink
expand expect with testing-library helper for all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThieryMichel committed Aug 28, 2024
1 parent 0b7dd0c commit a7870af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test-setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

// Ignore warnings about act()
// See https://github.com/testing-library/react-testing-library/issues/281,
// https://github.com/facebook/react/issues/14769
Expand Down

0 comments on commit a7870af

Please sign in to comment.