From c3098076b5264f080fc727d73bfd538916ac02b3 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 14 Oct 2022 15:36:16 +0200 Subject: 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 --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 599c77287c..cd83d399a0 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", -- cgit v1.2.3