Skip to content

Commit ca97411

Browse files
committed
Migrate to Vitest
1 parent ee05a76 commit ca97411

20 files changed

+2205
-2493
lines changed

babel.config.cjs

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

jest.config.cjs

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

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
2222
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
2323
"prepack": "./scripts/prepack.sh",
24-
"test": "jest && jest-it-up --config jest.config.cjs",
25-
"test:watch": "jest --watch"
24+
"test": "vitest",
25+
"test:watch": "vitest --watch"
2626
},
2727
"dependencies": {
2828
"@metamask/action-utils": "^1.0.0",
@@ -48,8 +48,6 @@
4848
"@metamask/eslint-config-nodejs": "^10.0.0",
4949
"@metamask/eslint-config-typescript": "^10.0.0",
5050
"@types/debug": "^4.1.7",
51-
"@types/jest": "^29.5.10",
52-
"@types/jest-when": "^3.5.2",
5351
"@types/node": "^17.0.23",
5452
"@types/prettier": "^2.7.3",
5553
"@types/rimraf": "^4.0.5",
@@ -58,6 +56,7 @@
5856
"@types/yargs": "^17.0.10",
5957
"@typescript-eslint/eslint-plugin": "^5.62.0",
6058
"@typescript-eslint/parser": "^5.62.0",
59+
"@vitest/coverage-istanbul": "^3.0.7",
6160
"babel-jest": "^29.7.0",
6261
"deepmerge": "^4.2.2",
6362
"eslint": "^8.27.0",
@@ -67,16 +66,17 @@
6766
"eslint-plugin-jsdoc": "^39.6.2",
6867
"eslint-plugin-node": "^11.1.0",
6968
"eslint-plugin-prettier": "^5.2.1",
70-
"jest": "^29.7.0",
7169
"jest-it-up": "^3.0.0",
72-
"jest-when": "^3.5.2",
7370
"nanoid": "^3.3.4",
7471
"prettier": "^3.3.3",
7572
"prettier-plugin-packagejson": "^2.5.2",
7673
"rimraf": "^4.0.5",
7774
"stdio-mock": "^1.2.0",
7875
"tsx": "^4.6.1",
79-
"typescript": "~5.1.6"
76+
"typescript": "~5.1.6",
77+
"vite": "^6.2.0",
78+
"vitest": "^3.0.7",
79+
"vitest-when": "^0.6.0"
8080
},
8181
"peerDependencies": {
8282
"prettier": ">=3.0.0"
@@ -92,7 +92,8 @@
9292
"lavamoat": {
9393
"allowScripts": {
9494
"@lavamoat/preinstall-always-fail": false,
95-
"tsx>esbuild": false
95+
"tsx>esbuild": false,
96+
"vite>esbuild": true
9697
}
9798
}
9899
}

0 commit comments

Comments
 (0)