test(react): add react e2e app

This commit is contained in:
Ely Lucas
2021-10-12 15:10:03 -06:00
committed by GitHub
parent 4075ea6941
commit ea34e50430
78 changed files with 65859 additions and 18670 deletions

View File

@ -0,0 +1,14 @@
// 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';
// Mock matchmedia
window.matchMedia = window.matchMedia || function() {
return {
matches: false,
addListener: function() {},
removeListener: function() {}
};
};