Skip to content

Commit

Permalink
test: convert all tests to Vitest browser mode
Browse files Browse the repository at this point in the history
This replaces the JSDom approach with Playwright
  • Loading branch information
thebuilder committed Oct 31, 2024
1 parent 8b7bc7f commit a3bd994
Show file tree
Hide file tree
Showing 10 changed files with 526 additions and 700 deletions.
15 changes: 2 additions & 13 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,14 @@
"noForEach": "off"
},
"style": {
"noVar": "off"
"noVar": "off",
"noUnusedTemplateLiteral": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
}
},
"overrides": [
{
"include": ["**/*.test.ts", "**/*.test.tsx"],
"linter": {
"rules": {
"style": {
"noUnusedTemplateLiteral": "off"
}
}
}
}
],
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,13 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "^1.9.4",
"@size-limit/preset-small-lib": "^11.1.4",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/browser": "^2.0.1",
"@vitest/coverage-istanbul": "^2.0.1",
"jsdom": "^24.1.0",
"@vitest/browser": "^2.1.4",
"@vitest/coverage-istanbul": "^2.1.4",
"lint-staged": "^15.2.7",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
Expand All @@ -133,7 +130,8 @@
"size-limit": "^11.1.4",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"vitest": "^2.0.1"
"vitest": "^2.1.4",
"vitest-browser-react": "^0.0.3"
},
"peerDependenciesMeta": {
"react-dom": {
Expand Down
Loading

0 comments on commit a3bd994

Please sign in to comment.