10000 Remove Jest and related dependencies, and migrate to Vitest, close #104 · symfony/stimulus-bridge@0db4bde · GitHub
[go: up one dir, main page]

Skip to content

Commit 0db4bde

Browse files
committed
Remove Jest and related dependencies, and migrate to Vitest, close #104
1 parent e0d0295 commit 0db4bde

12 files changed

+1009
-4056
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Replace ESLint and Prettier by Biome.js by @Kocal in https://github.com/symfony/stimulus-bridge/pull/95
2323
* Migrate from [Rollup](https://rollupjs.org/) to [Rolldown](https://rolldown.rs/) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/99
2424
* Migrate from [Yarn](https://yarnpkg.com/) to [pnpm](https://pnpm.io/) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/108
25+
* Migrate from [Jest](https://jestjs.io/) to [Vitest](https://vitest.dev/) by @Kocal in https://github.com/symfony/stimulus-bridge/pull/115
2526

2627
## 3.3.3
2728

jest.config.js

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

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
1313
"scripts": {
1414
"build": "rolldown -c",
15-
"test": "webpack --config test/webpack.config.js && jest",
15+
"test": "webpack --config test/webpack.config.js && vitest run",
16+
"test:watch": "webpack --config test/webpack.config.js && vitest",
1617
"check": "biome check",
1718
"ci": "biome ci"
1819
},
@@ -27,25 +28,25 @@
2728
},
2829
"devDependencies": {
2930
"@babel/core": "^7.22.0",
31+
"@babel/parser": "^7.26.7",
3032
"@babel/preset-env": "^7.22.0",
3133
"@babel/preset-typescript": "^7.22.0",
34+
"@babel/types": "^7.26.7",
3235
"@biomejs/biome": "^1.9.4",
3336
"@hotwired/stimulus": "^3.0",
3437
"@rollup/plugin-typescript": "^12.1.2",
3538
"@symfony/mock-module": "file:test/fixtures/module",
36-
"@symfony/stimulus-testing": "^2.0.0",
39+
"@testing-library/jest-dom": "^6.6.3",
3740
"acorn": "^8.2.0",
38-
"babel-jest": "^27.3.1",
39-
"jest": "^27.3.1",
41+
"jsdom": "^26.0.0",
42+
"json5": "^2.2.3",
4043
"rolldown": "^1.0.0-beta.3",
4144
"tslib": "^2.3.1",
4245
"typescript": "^4.4.4",
46+
"vitest": "^3.0.4",
4347
"webpack": "^5.72",
4448
"webpack-cli": "^5.1.4"
4549
},
46-
"resolutions": {
47-
"@types/jest": "^27.0"
48-
},
4950
"files": [
5051
"src/",
5152
"dist/",

0 commit comments

Comments
 (0)
0