diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-25 15:24:06 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | a22214f2a2efcdac2666e1aad3332cb49d2f2198 (patch) | |
| tree | a1f9c6a20ca5d5fa81c998b8a53974be310a0d02 /tests/jest/__mocks__ | |
| parent | a6ff5eee45215effb3344cb5d631a27a7c0369aa (diff) | |
build: convert project to esm
Diffstat (limited to 'tests/jest/__mocks__')
| -rw-r--r-- | tests/jest/__mocks__/matchMedia.mock.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/jest/__mocks__/matchMedia.mock.js b/tests/jest/__mocks__/matchMedia.mock.js index a983ad3..35381c4 100644 --- a/tests/jest/__mocks__/matchMedia.mock.js +++ b/tests/jest/__mocks__/matchMedia.mock.js @@ -1,3 +1,5 @@ +import { jest } from '@jest/globals'; + Object.defineProperty(window, 'matchMedia', { writable: true, value: jest.fn().mockImplementation((query) => ({ |
