Skip to content

Commit bc87ece

Browse files
committed
chore: several minor updates
chore: wip
1 parent ba8a7f4 commit bc87ece

File tree

6 files changed

+137
-25
lines changed

6 files changed

+137
-25
lines changed

.vscode/dictionary.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ deps
1717
destructurable
1818
dtsx
1919
entrypoints
20+
happydom
2021
heroicons
2122
iconify
2223
localtunnels
@@ -28,6 +29,7 @@ Postcardware
2829
prefetch
2930
preinstall
3031
quickfix
32+
Registrator
3133
shikijs
3234
socio
3335
Solana

bun.lock

Lines changed: 120 additions & 23 deletions
Large diffs are not rendered by default.

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[install]
22
registry = { url = "https://registry.npmjs.org/", token = "$BUN_AUTH_TOKEN" }
3+
4+
[test]
5+
preload = "./happydom.ts"

happydom.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { GlobalRegistrator } from "@happy-dom/global-registrator";
2+
3+
GlobalRegistrator.register();

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@
6161
"typecheck": "bun --bun tsc --noEmit"
6262
},
6363
"devDependencies": {
64+
"@happy-dom/global-registrator": "^17.1.8",
6465
"@stacksjs/docs": "^0.69.3",
65-
"@stacksjs/eslint-config": "^3.15.1-beta.4",
66+
"@stacksjs/eslint-config": "^4.2.1-beta.1",
6667
"@types/bun": "^1.2.3",
6768
"bumpp": "^10.0.3",
6869
"bun-plugin-dtsx": "^0.21.9",

test/browser.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
// wip
1+
import { expect, test } from 'bun:test'
2+
3+
test('set button text', () => {
4+
document.body.innerHTML = `<button>My button</button>`
5+
const button = document.querySelector('button')
6+
expect(button?.innerText).toEqual('My button')
7+
})

0 commit comments

Comments
 (0)