Skip to content

Commit 7260697

Browse files
chore: wip
1 parent 71300c8 commit 7260697

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

bun.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
"devDependencies": {
1010
"@stacksjs/docs": "^0.70.23",
1111
"@stacksjs/eslint-config": "^4.14.0-beta.3",
12+
"@types/bun": "^1.3.0",
1213
"better-dx": "^0.1.7",
14+
"buddy-bot": "^0.9.9",
15+
"bun-plugin-dtsx": "^0.9.5",
16+
"typescript": "^5.9.3",
1317
},
1418
},
1519
"packages/benchmarks": {

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
"devDependencies": {
9494
"@stacksjs/docs": "^0.70.23",
9595
"@stacksjs/eslint-config": "^4.14.0-beta.3",
96-
"better-dx": "^0.1.7"
96+
"@types/bun": "^1.3.0",
97+
"better-dx": "^0.1.7",
98+
"buddy-bot": "^0.9.9",
99+
"bun-plugin-dtsx": "^0.9.5",
100+
"typescript": "^5.9.3"
97101
}
98102
}

test-utils/happy-dom.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const document = window.document
1313
globalThis.window = window as any
1414
globalThis.document = document as any
1515
globalThis.navigator = window.navigator as any
16-
globalThis.location = window.location as any
17-
globalThis.HTMLElement = window.HTMLElement as any
16+
globalThis.location = (window as any).location as any
17+
globalThis.HTMLElement = (window as any).HTMLElement as any
1818
globalThis.Element = VirtualElement as any
19-
globalThis.Node = window.Node as any
19+
globalThis.Node = (window as any).Node as any
2020

2121
// Use VirtualEvent as Event polyfill since very-happy-dom doesn't expose window.Event
2222
globalThis.Event = VirtualEvent as any
@@ -369,7 +369,7 @@ if (typeof globalThis.IntersectionObserver === 'undefined') {
369369
}
370370

371371
// Add getComputedStyle if not implemented
372-
if (typeof window.getComputedStyle === 'undefined') {
372+
if (typeof (window as any).getComputedStyle === 'undefined') {
373373
;(window as any).getComputedStyle = function (element: Element): CSSStyleDeclaration {
374374
// very-happy-dom stores inline styles in _internalStyles Map
375375
const internalStyles = (element as any)._internalStyles as Map<string, string> | undefined

0 commit comments

Comments
 (0)