Skip to content

Commit eead1ba

Browse files
author
Loïc Mangeonjean
committed
fix: add adoptedStyleSheets mock
1 parent 2965e48 commit eead1ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

browserMock.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,5 @@ Object.defineProperty(global, 'performance', {
161161
global.CSS = { escape: (v) => v }
162162

163163
Element.prototype.scrollIntoView = jest.fn()
164+
165+
window.document.adoptedStyleSheets = []

0 commit comments

Comments
 (0)