Skip to content

Commit 3273126

Browse files
committed
test: convert all tests to Vitest browser mode
This replaces the JSDom approach with Playwright
1 parent 7c6939a commit 3273126

File tree

10 files changed

+521
-700
lines changed

10 files changed

+521
-700
lines changed

biome.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,14 @@
2525
"noForEach": "off"
2626
},
2727
"style": {
28-
"noVar": "off"
28+
"noVar": "off",
29+
"noUnusedTemplateLiteral": "off"
2930
},
3031
"a11y": {
3132
"noSvgWithoutTitle": "off"
3233
}
3334
}
3435
},
35-
"overrides": [
36-
{
37-
"include": ["**/*.test.ts", "**/*.test.tsx"],
38-
"linter": {
39-
"rules": {
40-
"style": {
41-
"noUnusedTemplateLiteral": "off"
42-
}
43-
}
44-
}
45-
}
46-
],
4736
"vcs": {
4837
"enabled": true,
4938
"clientKind": "git",

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,13 @@
112112
},
113113
"devDependencies": {
114114
"@arethetypeswrong/cli": "^0.15.3",
115-
"@biomejs/biome": "^1.8.3",
115+
"@biomejs/biome": "^1.9.4",
116116
"@size-limit/preset-small-lib": "^11.1.4",
117-
"@testing-library/jest-dom": "^6.4.6",
118-
"@testing-library/react": "^16.0.0",
119117
"@types/react": "^18.3.3",
120-
"@types/react-dom": "^18.3.0",
118+
"@types/react-dom": "^18.3.1",
121119
"@vitejs/plugin-react": "^4.3.1",
122-
"@vitest/browser": "^2.0.1",
123-
"@vitest/coverage-istanbul": "^2.0.1",
124-
"jsdom": "^24.1.0",
120+
"@vitest/browser": "^2.1.4",
121+
"@vitest/coverage-istanbul": "^2.1.4",
125122
"lint-staged": "^15.2.7",
126123
"microbundle": "^0.15.1",
127124
"npm-run-all": "^4.1.5",
@@ -133,7 +130,8 @@
133130
"size-limit": "^11.1.4",
134131
"tsup": "^8.1.0",
135132
"typescript": "^5.5.3",
136-
"vitest": "^2.0.1"
133+
"vitest": "^2.1.4",
134+
"vitest-browser-react": "^0.0.3"
137135
},
138136
"peerDependenciesMeta": {
139137
"react-dom": {

0 commit comments

Comments
 (0)