Skip to content

Commit 66aeeeb

Browse files
Himenonclaude
andcommitted
chore: jest から vitest に移行
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
1 parent c0b830f commit 66aeeeb

30 files changed

Lines changed: 829 additions & 2153 deletions

jest.config.cjs

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

jest.snapshot.config.cjs

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

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@
6464
"lint": "biome lint .",
6565
"release:github:registry": "pnpm publish --no-git-checks --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}",
6666
"release:npm:registry": "pnpm publish --no-git-checks",
67-
"test": "run-p test:depcruise test:jest test:code:gen:* test:snapshot",
67+
"test": "run-p test:depcruise test:vitest test:code:gen:* test:snapshot",
6868
"test:code:gen": "run-p test:code:gen:*",
6969
"test:code:gen:class": "pnpm ts ./scripts/testCodeGenWithClass.ts",
7070
"test:code:gen:currying-function": "pnpm ts ./scripts/testCodeGenWithCurryingFunctional.ts",
7171
"test:code:gen:function": "pnpm ts ./scripts/testCodeGenWithFunctional.ts",
7272
"test:depcruise": "depcruise --validate .dependency-cruiser.cjs src",
73-
"test:jest": "cross-env NODE_OPTIONS=--experimental-specifier-resolution=node jest -c ./jest.config.cjs --collect-coverage",
74-
"test:snapshot": "jest -c ./jest.snapshot.config.cjs",
73+
"test:snapshot": "vitest run --config ./vitest.snapshot.config.ts",
74+
"test:vitest": "vitest run --config ./vitest.config.ts --coverage",
7575
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
76-
"update:snapshot": "pnpm jest -c ./jest.snapshot.config.cjs --updateSnapshot",
76+
"update:snapshot": "vitest run --config ./vitest.snapshot.config.ts --update",
7777
"validate": "pnpm ts ./scripts/validate.ts",
7878
"watch": "pnpm ts ./scripts/watch.ts"
7979
},
@@ -93,34 +93,30 @@
9393
"@himenon/path-oriented-data-structure": "1.0.2",
9494
"@swc/core": "^1.15.30",
9595
"@swc/helpers": "^0.5.21",
96-
"@swc/jest": "^0.2.39",
9796
"@types/chokidar": "2.1.7",
98-
"@types/jest": "30.0.0",
9997
"@types/js-yaml": "4.0.9",
10098
"@types/node": "25.6.0",
10199
"@types/rimraf": "4.0.5",
100+
"@vitest/coverage-v8": "^4.1.5",
102101
"chokidar": "5.0.0",
103102
"conventional-changelog-angular-all": "1.7.0",
104103
"cpy": "13.2.1",
105-
"cross-env": "^10.1.0",
106104
"dependency-cruiser": "17.3.10",
107105
"dot-prop": "10.1.0",
108106
"execa": "9.6.1",
109107
"generate-changelog": "1.8.0",
110108
"import-sort-style-module": "6.0.0",
111-
"jest": "30.3.0",
112-
"jest-cli": "30.3.0",
113109
"lefthook": "^2.1.6",
114110
"lerna": "9.0.7",
115111
"npm-run-all": "4.1.5",
116112
"openapi-schema-validator": "12.1.3",
117113
"read-package-up": "^12.0.0",
118114
"rimraf": "6.1.3",
119115
"sort-package-json": "3.6.1",
120-
"ts-jest": "29.4.9",
121116
"ts-node": "10.9.2",
122117
"tsup": "^8.5.1",
123-
"typescript": "6.0.3"
118+
"typescript": "6.0.3",
119+
"vitest": "^4.1.5"
124120
},
125121
"peerDependencies": {
126122
"typescript": ">=5"

0 commit comments

Comments
 (0)