aboutsummaryrefslogtreecommitdiff
path: root/src/setupTests.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-11-10 11:50:24 -0800
committerFuwn <[email protected]>2020-11-10 11:50:24 -0800
commit2a16314865ebd408fee4edfbc89eb632c887b795 (patch)
tree89db566af5c4c13cec8f35f3ecf1be0a426c27f3 /src/setupTests.ts
downloadme-rewrite-typescript.tar.xz
me-rewrite-typescript.zip
Diffstat (limited to 'src/setupTests.ts')
-rw-r--r--src/setupTests.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/setupTests.ts b/src/setupTests.ts
new file mode 100644
index 0000000..8f2609b
--- /dev/null
+++ b/src/setupTests.ts
@@ -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';