diff options
author | Vitaly Takmazov | 2022-10-28 15:52:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 58f504e34fe5c37056c4e74ed8204bd0d10cb994 (patch) | |
tree | 59c9daf1be270793c294c78a079d3bc73b4d45e7 /vnext/setupTests.js | |
parent | d1ae7c0766c1e3319b4a75164123ffd364fd2389 (diff) |
Merge Jest configuration from Next version
Diffstat (limited to 'vnext/setupTests.js')
-rw-r--r-- | vnext/setupTests.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vnext/setupTests.js b/vnext/setupTests.js new file mode 100644 index 00000000..b6aaf949 --- /dev/null +++ b/vnext/setupTests.js @@ -0,0 +1,14 @@ +import '@testing-library/jest-dom'; + +window.matchMedia = window.matchMedia || function() { + return { + matches: true, + media: '', + addListener: function() { }, + removeListener: function() { }, + addEventListener: function() { }, + removeEventListener: function() { }, + dispatchEvent: function() { return true; }, + onchange: function() { } + }; +}; |