aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorsilverwind2022-10-14 15:36:16 +0200
committerGitHub2022-10-14 21:36:16 +0800
commitc3098076b5264f080fc727d73bfd538916ac02b3 (patch)
treeb6e217e73159deb011e537ac90d82c1edaed15fc /package.json
parent9dc264a2eebbd30bbff483c26bf27f0406677f77 (diff)
Switch from jest to vitest (#21444)
Even if we are not bundling with `vite` yet, we can use `vitest` in place of Jest which brings a few benefits like not requiring to use `NODE_OPTIONS` to run and having sane module resolution. It's possible to also use `jest-extended` with vitest, but I opted to not do so for now because it brings heavyweight dependencies and it was trivial to just rewrite the affected matchers to be compatible. This PR also removes 153 JS dependencies, which is certainly nice. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 599c77287..cd83d399a 100644
--- a/package.json
+++ b/package.json
@@ -48,6 +48,7 @@
},
"devDependencies": {
"@playwright/test": "1.27.0",
+ "@rollup/pluginutils": "5.0.1",
"@stoplight/spectral-cli": "6.5.1",
"eslint": "8.25.0",
"eslint-plugin-import": "2.26.0",
@@ -55,15 +56,14 @@
"eslint-plugin-sonarjs": "0.15.0",
"eslint-plugin-unicorn": "44.0.2",
"eslint-plugin-vue": "9.6.0",
- "jest": "29.1.2",
- "jest-environment-jsdom": "29.1.2",
- "jest-extended": "3.1.0",
+ "jsdom": "20.0.1",
"markdownlint-cli": "0.32.2",
"postcss-less": "6.0.0",
"stylelint": "14.13.0",
"stylelint-config-standard": "28.0.0",
"svgo": "2.8.0",
- "updates": "13.1.8"
+ "updates": "13.1.8",
+ "vitest": "0.24.1"
},
"browserslist": [
"defaults",