mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
test: bump vitest v1.1.3 (#12546)
This commit is contained in:
@@ -61,14 +61,14 @@
|
||||
"@vant/icons": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.5.2",
|
||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||
"@vitest/coverage-istanbul": "^1.1.0",
|
||||
"@vitest/coverage-istanbul": "^1.1.3",
|
||||
"@vue/runtime-core": "^3.4.0-rc.1",
|
||||
"@vue/test-utils": "^2.3.2",
|
||||
"diffable-html": "^5.0.0",
|
||||
"jsdom": "^22.1.0",
|
||||
"typescript": "^5.0.4",
|
||||
"vite": "^5.0.10",
|
||||
"vitest": "^1.1.0",
|
||||
"vitest": "^1.1.3",
|
||||
"vitest-canvas-mock": "^0.3.3",
|
||||
"vue": "^3.4.0-rc.1",
|
||||
"vue-router": "^4.1.6"
|
||||
|
@@ -1,10 +1,9 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import vitePluginVue from '@vitejs/plugin-vue';
|
||||
import vitePluginJsx from '@vitejs/plugin-vue-jsx';
|
||||
import { cpus, totalmem } from 'os';
|
||||
import { cpus } from 'os';
|
||||
|
||||
const cpuNum = Math.max(cpus().length - 1, 1);
|
||||
const memory = totalmem();
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
@@ -25,10 +24,7 @@ export default defineConfig({
|
||||
poolOptions: {
|
||||
vmThreads: {
|
||||
// limit the memory to avoid OOM
|
||||
memoryLimit:
|
||||
typeof memory === 'number'
|
||||
? memory * Math.min(1 / (cpuNum * 2), 0.1)
|
||||
: undefined,
|
||||
memoryLimit: Math.min(1 / (cpuNum * 2), 0.1),
|
||||
},
|
||||
},
|
||||
environment: 'jsdom',
|
||||
|
Reference in New Issue
Block a user