Skip to content

Commit 7834576

Browse files
committed
test: switch from jest to vitest
Signed-off-by: Adam Setch <[email protected]>
1 parent 34b4d50 commit 7834576

File tree

94 files changed

+1550
-3813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1550
-3813
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To reload the app with the changes that `pnpm watch` has detected, you can use t
3636
3737
There are 2 checks:
3838
1. linter & formatter with [biome][biome-website]
39-
2. unit tests with [jest][jest-website]
39+
2. unit tests with [vitest][vitest-website]
4040
4141
```shell
4242
# Run biome to check linting and formatting
@@ -45,7 +45,7 @@ pnpm lint:check
4545
# Run unit tests with coverage
4646
pnpm test
4747
48-
# Update jest snapshots
48+
# Update test snapshots
4949
pnpm test -u
5050
```
5151
@@ -95,5 +95,5 @@ This project is a tool for monitoring new notifications from Github. It's not me
9595
[github-new-release]: https://github.com/gitify-app/gitify/releases/new
9696
[github-octicons]: https://primer.style/foundations/icons
9797
[homebrew-cask-autobump-workflow]: https://github.com/Homebrew/homebrew-cask/actions/workflows/autobump.yml
98-
[jest-website]: https://jestjs.io/
98+
[vitest-website]: https://vitest.dev/
9999

jest.config.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"package:win": "electron-builder --win",
1818
"lint:check": "biome check",
1919
"lint": "biome check --fix",
20-
"test": "jest",
20+
"test": "vitest -u",
2121
"start": "electron . --enable-logging",
2222
"prepare": "husky"
2323
},
@@ -150,12 +150,12 @@
150150
"@primer/react": "36.27.0",
151151
"@tailwindcss/postcss": "4.0.6",
152152
"@testing-library/react": "16.2.0",
153-
"@types/jest": "29.5.14",
154153
"@types/node": "22.13.2",
155154
"@types/react": "19.0.8",
156155
"@types/react-dom": "19.0.3",
157156
"@types/react-router-dom": "5.3.3",
158157
"@types/semver": "7.5.8",
158+
"@vitest/ui": "^3.0.5",
159159
"axios": "1.7.9",
160160
"clsx": "2.1.1",
161161
"concurrently": "9.1.2",
@@ -169,8 +169,6 @@
169169
"graphql-tag": "2.12.6",
170170
"html-webpack-plugin": "5.6.3",
171171
"husky": "9.1.7",
172-
"jest": "29.7.0",
173-
"jest-environment-jsdom": "29.7.0",
174172
"mini-css-extract-plugin": "2.9.2",
175173
"nock": "14.0.1",
176174
"postcss": "8.5.2",
@@ -181,17 +179,20 @@
181179
"tailwind-merge": "3.0.1",
182180
"tailwindcss": "4.0.6",
183181
"terser-webpack-plugin": "5.3.11",
184-
"ts-jest": "29.2.5",
185182
"ts-loader": "9.5.2",
186183
"ts-node": "10.9.2",
187184
"typescript": "5.7.3",
185+
"vitest": "3.0.5",
188186
"webpack": "5.98.0",
189187
"webpack-cli": "6.0.1",
190188
"webpack-merge": "6.0.1"
191189
},
192190
"packageManager": "[email protected]",
193191
"lint-staged": {
194192
"*": "biome check --fix --no-errors-on-unmatched",
195-
"*.{js,ts,tsx}": "pnpm test -- --findRelatedTests -u --passWithNoTests"
193+
"*.{js,ts,tsx}": "pnpm test"
194+
},
195+
"pnpm": {
196+
"onlyBuiltDependencies": ["@biomejs/biome", "electron", "esbuild"]
196197
}
197198
}

0 commit comments

Comments
 (0)