khulnasoft commited on
Commit
3ad8578
·
verified ·
1 Parent(s): 244681d

Create frontend/src/setupTests.js

Browse files
Files changed (1) hide show
  1. frontend/src/setupTests.js +5 -0
frontend/src/setupTests.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+ // allows you to do things like:
3
+ // expect(element).toHaveTextContent(/react/i)
4
+ // learn more: https://github.com/testing-library/jest-dom
5
+ import '@testing-library/jest-dom';