We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1ccb2 commit 5bc6f96Copy full SHA for 5bc6f96
packages/utils/test/browser.test.ts
@@ -6,6 +6,8 @@ beforeAll(() => {
6
const dom = new JSDOM();
7
// @ts-expect-error need to override global document
8
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;
11
});
12
13
describe('htmlTreeAsString', () => {
0 commit comments