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-format": "^24.0.0",
"pretty-quick": "^3.1.0", "pretty-quick": "^3.1.0",
"vite": "^4.3.8", "vite": "^4.3.8",
"vitest": "^0.31.1" "vitest": "^0.32.0"
}, },
"volta": { "volta": {
"node": "18.14.2", "node": "18.14.2",

View File

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

View File

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