chore: upgrade vitest

This commit is contained in:
Rairn 2023-06-07 15:42:57 +08:00
parent e8e9c038e3
commit ad2908dd76
3 changed files with 39 additions and 31 deletions

View File

@ -54,7 +54,7 @@
"pretty-format": "^24.0.0",
"pretty-quick": "^3.1.0",
"vite": "^4.3.8",
"vitest": "^0.31.1"
"vitest": "^0.32.0"
},
"volta": {
"node": "18.14.2",

View File

@ -13,6 +13,7 @@ export default defineConfig({
css: false,
threads: true,
alias: [
{ find: 'testUtils', replacement: 'testUtils.ts' },
{ find: '@nocobase/evaluators/client', replacement: 'packages/core/evaluators/src/client' },
{ find: '@nocobase/utils/client', replacement: 'packages/core/utils/src/client' },
{ find: /^~antd\/(.*)/, replacement: 'antd/$1' },

View File

@ -5739,40 +5739,45 @@
"@babel/plugin-transform-react-jsx-source" "^7.19.6"
react-refresh "^0.14.0"
"@vitest/expect@0.31.1":
version "0.31.1"
resolved "https://registry.npmmirror.com/@vitest/expect/-/expect-0.31.1.tgz#db8cb5a14a91167b948f377b9d29442229c73747"
"@vitest/expect@0.32.0":
version "0.32.0"
resolved "https://registry.npmmirror.com/@vitest/expect/-/expect-0.32.0.tgz#5b10cdc822d54cb870aef917462fbf847202e4e0"
integrity sha512-VxVHhIxKw9Lux+O9bwLEEk2gzOUe93xuFHy9SzYWnnoYZFYg1NfBtnfnYWiJN7yooJ7KNElCK5YtA7DTZvtXtg==
dependencies:
"@vitest/spy" "0.31.1"
"@vitest/utils" "0.31.1"
"@vitest/spy" "0.32.0"
"@vitest/utils" "0.32.0"
chai "^4.3.7"
"@vitest/runner@0.31.1":
version "0.31.1"
resolved "https://registry.npmmirror.com/@vitest/runner/-/runner-0.31.1.tgz#fc06260d4824dde624abaeea1825d6a75bad4583"
"@vitest/runner@0.32.0":
version "0.32.0"
resolved "https://registry.npmmirror.com/@vitest/runner/-/runner-0.32.0.tgz#d2a391bf4bb373e324cf2f372d8bb913ab323f08"
integrity sha512-QpCmRxftHkr72xt5A08xTEs9I4iWEXIOCHWhQQguWOKE4QH7DXSKZSOFibuwEIMAD7G0ERvtUyQn7iPWIqSwmw==
dependencies:
"@vitest/utils" "0.31.1"
"@vitest/utils" "0.32.0"
concordance "^5.0.4"
p-limit "^4.0.0"
pathe "^1.1.0"
"@vitest/snapshot@0.31.1":
version "0.31.1"
resolved "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-0.31.1.tgz#7fc3f1e48f0c4313e6cb795c17a2c1aa909a7d64"
"@vitest/snapshot@0.32.0":
version "0.32.0"
resolved "https://registry.npmmirror.com/@vitest/snapshot/-/snapshot-0.32.0.tgz#49c6a08da12ab903ab4582386c97d70b293bc644"
integrity sha512-yCKorPWjEnzpUxQpGlxulujTcSPgkblwGzAUEL+z01FTUg/YuCDZ8dxr9sHA08oO2EwxzHXNLjQKWJ2zc2a19Q==
dependencies:
magic-string "^0.30.0"
pathe "^1.1.0"
pretty-format "^27.5.1"
"@vitest/spy@0.31.1":
version "0.31.1"
resolved "https://registry.npmmirror.com/@vitest/spy/-/spy-0.31.1.tgz#1c3b6a3eec4ce81b8889e19c7fac6a603b600b14"
"@vitest/spy@0.32.0":
version "0.32.0"
resolved "https://registry.npmmirror.com/@vitest/spy/-/spy-0.32.0.tgz#3ccb4e6dd4cbda7bb837c467d8405e2f8cc107a2"
integrity sha512-MruAPlM0uyiq3d53BkwTeShXY0rYEfhNGQzVO5GHBmmX3clsxcWp79mMnkOVcV244sNTeDcHbcPFWIjOI4tZvw==
dependencies:
tinyspy "^2.1.0"
"@vitest/utils@0.31.1":
version "0.31.1"
resolved "https://registry.npmmirror.com/@vitest/utils/-/utils-0.31.1.tgz#b810a458b37ef16931ab0d384ce79a9500f34e07"
"@vitest/utils@0.32.0":
version "0.32.0"
resolved "https://registry.npmmirror.com/@vitest/utils/-/utils-0.32.0.tgz#ffbc023083e0ef8401a3562086de0ff1b0599635"
integrity sha512-53yXunzx47MmbuvcOPpLaVljHaeSu1G2dHdmy7+9ngMnQIkBQcvwOcoclWFnxDMxFbnq8exAfh3aKSZaK71J5A==
dependencies:
concordance "^5.0.4"
loupe "^2.3.6"
@ -22006,9 +22011,10 @@ vinyl@^2.0.0, vinyl@^2.1.0:
remove-trailing-separator "^1.0.1"
replace-ext "^1.0.0"
vite-node@0.31.1:
version "0.31.1"
resolved "https://registry.npmmirror.com/vite-node/-/vite-node-0.31.1.tgz#9fea18cbf9552ab262b969068249a8b8e7fb8b38"
vite-node@0.32.0:
version "0.32.0"
resolved "https://registry.npmmirror.com/vite-node/-/vite-node-0.32.0.tgz#8ee54539fa75d1271adaa9788c8ba526480f4519"
integrity sha512-220P/y8YacYAU+daOAqiGEFXx2A8AwjadDzQqos6wSukjvvTWNqleJSwoUn0ckyNdjHIKoxn93Nh1vWBqEKr3Q==
dependencies:
cac "^6.7.14"
debug "^4.3.4"
@ -22027,18 +22033,19 @@ vite-node@0.31.1:
optionalDependencies:
fsevents "~2.3.2"
vitest@^0.31.1:
version "0.31.1"
resolved "https://registry.npmmirror.com/vitest/-/vitest-0.31.1.tgz#e3d1b68a44e76e24f142c1156fe9772ef603e52c"
vitest@^0.32.0:
version "0.32.0"
resolved "https://registry.npmmirror.com/vitest/-/vitest-0.32.0.tgz#125212b8abbfdae047fa72e516bc7257fd0a67db"
integrity sha512-SW83o629gCqnV3BqBnTxhB10DAwzwEx3z+rqYZESehUB+eWsJxwcBQx7CKy0otuGMJTYh7qCVuUX23HkftGl/Q==
dependencies:
"@types/chai" "^4.3.5"
"@types/chai-subset" "^1.3.3"
"@types/node" "*"
"@vitest/expect" "0.31.1"
"@vitest/runner" "0.31.1"
"@vitest/snapshot" "0.31.1"
"@vitest/spy" "0.31.1"
"@vitest/utils" "0.31.1"
"@vitest/expect" "0.32.0"
"@vitest/runner" "0.32.0"
"@vitest/snapshot" "0.32.0"
"@vitest/spy" "0.32.0"
"@vitest/utils" "0.32.0"
acorn "^8.8.2"
acorn-walk "^8.2.0"
cac "^6.7.14"
@ -22054,7 +22061,7 @@ vitest@^0.31.1:
tinybench "^2.5.0"
tinypool "^0.5.0"
vite "^3.0.0 || ^4.0.0"
vite-node "0.31.1"
vite-node "0.32.0"
why-is-node-running "^2.2.2"
vizion@~2.2.1: