Skip to content

Commit c2f4a6d

Browse files
committed
test: setup browser and SSR testing
1 parent 0b7435b commit c2f4a6d

12 files changed

Lines changed: 446 additions & 173 deletions

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
"./package.json": "./package.json"
2727
},
2828
"scripts": {
29+
"prepare": "playwright install",
2930
"build": "tsdown",
3031
"check": "biome check && tsc --noEmit",
3132
"fix": "biome check --fix",
32-
"test": "concurrently \"vitest --watch --ui --coverage\" \"(cd tests && relay-compiler -w)\"",
33+
"test": "concurrently \"vitest --watch --coverage\" \"(cd tests && relay-compiler -w)\"",
3334
"ci:test": "(cd tests && relay-compiler) && vitest run --coverage",
3435
"ci:version": "changeset version && biome check --fix",
3536
"ci:publish": "pnpm publish -r"
@@ -46,20 +47,20 @@
4647
"devDependencies": {
4748
"@biomejs/biome": "^2.4.4",
4849
"@changesets/cli": "^2.29.8",
49-
"@solidjs/testing-library": "^0.8.10",
5050
"@testing-library/jest-dom": "^6.9.1",
5151
"@types/node": "^24.10.14",
5252
"@types/relay-runtime": "^20.1.1",
5353
"@types/relay-test-utils": "^19.0.0",
54+
"@vitest/browser-playwright": "^4.0.18",
5455
"@vitest/coverage-v8": "^4.0.18",
5556
"@vitest/ui": "^4.0.18",
5657
"concurrently": "^9.2.1",
57-
"happy-dom": "^20.7.0",
5858
"magic-string": "^0.30.21",
5959
"minimatch": "^10.2.4",
6060
"oxc-parser": "^0.115.0",
6161
"oxc-walker": "^0.7.0",
6262
"pkg-pr-new": "^0.0.63",
63+
"playwright": "^1.58.2",
6364
"publint": "^0.3.17",
6465
"relay-compiler": "^20.1.1",
6566
"relay-runtime": "^20.1.1",

0 commit comments

Comments
 (0)