Skip to content

Commit

Permalink
Merge pull request #10169 from marmelab/extend-expect-with-testing-li…
Browse files Browse the repository at this point in the history
…brary

expand expect with testing-library helper for all tests
  • Loading branch information
slax57 authored Aug 28, 2024
2 parents 172a3bf + a7870af commit cbaaf5b
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 cbaaf5b

Please sign in to comment.