X-Git-Url: https://git.jacobcasper.com/?p=perfect-gift.git;a=blobdiff_plain;f=frontend%2Fsrc%2FsetupTests.js;fp=frontend%2Fsrc%2FsetupTests.js;h=74b1a275a0ea7df518f17bcea5375abf003abe55;hp=0000000000000000000000000000000000000000;hb=05b9ad642fae36eb7ef5ebbae1fb45396bab7270;hpb=6a60d93dfb74c8f12c1e6881a74ab0fdcbfbb932 diff --git a/frontend/src/setupTests.js b/frontend/src/setupTests.js new file mode 100644 index 0000000..74b1a27 --- /dev/null +++ b/frontend/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/extend-expect';