Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Sep 1, 2024
1 parent 8320238 commit e8c7284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function setupDocument(): void {
globalThis.document = createDocument();
if (globalThis.window == null) {
// NOTE: `window` will be removed in Deno v2
// See: https://github.com/testing-library/dom-testing-library/blob/v8.20.0/src/helpers.ts#L20-L26
// TODO: Find a better solution
// @ts-expect-error This is intended
globalThis.window = globalThis;
Expand Down

0 comments on commit e8c7284

Please sign in to comment.