Skip to content

Commit 5357a9a

Browse files
committed
rewrite event-to-object tests
1 parent 26fa732 commit 5357a9a

File tree

13 files changed

+456
-418
lines changed

13 files changed

+456
-418
lines changed

src/client/package-lock.json

Lines changed: 208 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"scripts": {
1111
"build": "vite build",
1212
"publish": "npm --workspaces publish",
13+
"test": "npm --workspaces test",
1314
"format": "npm --workspaces run format",
1415
"check:format": "npm --workspaces run check:format",
1516
"check:tests": "npm --workspaces run check:tests",

src/client/packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"scripts": {
2121
"format": "prettier --write ./src",
22+
"test": "npm run check:tests",
2223
"check:format": "prettier --check ./src",
2324
"check:tests": "echo 'no tests'",
2425
"check:types": "tsc"

src/client/packages/client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"scripts": {
2727
"format": "prettier --write ./src",
28+
"test": "npm run check:tests",
2829
"check:format": "prettier --check ./src",
2930
"check:tests": "echo 'no tests'",
3031
"check:types": "tsc"

src/client/packages/event-to-object/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
},
77
"description": "A client for ReactPy implemented in React",
88
"devDependencies": {
9-
"jsdom": "16.5.0",
9+
"happy-dom": "^8.9.0",
1010
"lodash": "^4.17.21",
1111
"prettier": "^3.0.0-alpha.6",
12-
"uvu": "^0.5.1",
1312
"tsm": "^2.0.0",
14-
"typescript": "^4.9.5"
13+
"typescript": "^4.9.5",
14+
"uvu": "^0.5.1"
1515
},
1616
"license": "MIT",
1717
"main": "src/index.js",
@@ -22,6 +22,7 @@
2222
},
2323
"scripts": {
2424
"format": "prettier --write ./src ./tests",
25+
"test": "npm run check:tests",
2526
"check:format": "prettier --check ./src ./tests",
2627
"check:tests": "uvu -r tsm tests",
2728
"check:types": "tsc"

src/client/packages/event-to-object/src/events.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export interface SelectionObject {
264264
isCollapsed: boolean;
265265
rangeCount: number;
266266
type: string;
267+
selectedText: string;
267268
}
268269

269270
export interface EventTargetObject {

0 commit comments

Comments
 (0)