Skip to content

Commit ea1f9fd

Browse files
authored
build: use playwright (#5)
1 parent 5e12d33 commit ea1f9fd

File tree

3 files changed

+6144
-5050
lines changed

3 files changed

+6144
-5050
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
- run: pnpm install
2727
- run: pnpm build
2828
- run: pnpm check
29+
- run: npx playwright install --with-deps
2930
- run: pnpm test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@types/node": "^22.4.1",
5353
"@web/dev-server": "^0.4.5",
5454
"@web/test-runner": "^0.18.2",
55+
"@web/test-runner-playwright": "^0.11.0",
5556
"chai": "^5.1.1",
5657
"husky": "^9.1.4",
5758
"lint-staged": "^15.2.9",
@@ -69,7 +70,6 @@
6970
"clean": true,
7071
"command": "tsup --dts --format esm --target es2020 --splitting false --sourcemap src/**/*.ts",
7172
"dependencies": [
72-
"build:json",
7373
"build:vscode",
7474
"build:docs"
7575
],
@@ -133,7 +133,7 @@
133133
"service": true
134134
},
135135
"test": {
136-
"command": "wtr dist/*.test.js --node-resolve --coverage --reporter spec",
136+
"command": "wtr dist/*.test.js --node-resolve --coverage --reporter spec --playwright --browsers chromium",
137137
"dependencies": [
138138
"build"
139139
]

0 commit comments

Comments
 (0)