Skip to content

Commit 5bc6f96

Browse files
committed
Add HTMLElement type to tests to prevent failures
1 parent da1ccb2 commit 5bc6f96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/utils/test/browser.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ beforeAll(() => {
66
const dom = new JSDOM();
77
// @ts-expect-error need to override global document
88
global.document = dom.window.document;
9+
// @ts-expect-error need to add HTMLElement type or it will not be found
10+
global.HTMLElement = new JSDOM().window.HTMLElement;
911
});
1012

1113
describe('htmlTreeAsString', () => {

0 commit comments

Comments
 (0)