diff options
author | 2021-10-13 00:28:20 -0700 | |
---|---|---|
committer | 2021-10-13 00:28:20 -0700 | |
commit | 9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c (patch) | |
tree | b421e988ac6c23bc5bff88a95dbf15722b35e01d /examples/react/src/setupTests.js | |
parent | 88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb (diff) | |
download | bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.gz bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.zst bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.zip |
Clean up examples a little
Diffstat (limited to 'examples/react/src/setupTests.js')
-rw-r--r-- | examples/react/src/setupTests.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/react/src/setupTests.js b/examples/react/src/setupTests.js new file mode 100644 index 000000000..8f2609b7b --- /dev/null +++ b/examples/react/src/setupTests.js @@ -0,0 +1,5 @@ +// 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'; |