Update to vitest 0.32

This commit is contained in:
Alejandro Celaya 2023-06-09 09:07:20 +02:00
parent a8c6d9b034
commit 7c2dab43e1
2 changed files with 86 additions and 83 deletions

165
package-lock.json generated
View file

@ -68,7 +68,7 @@
"@types/react-tag-autocomplete": "^6.3.0",
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/coverage-c8": "^0.31.1",
"@vitest/coverage-c8": "^0.32.0",
"adm-zip": "^0.5.10",
"chalk": "^5.2.0",
"eslint": "^8.30.0",
@ -79,7 +79,7 @@
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vite-plugin-pwa": "^0.14.4",
"vitest": "^0.31.1",
"vitest": "^0.32.0",
"vitest-canvas-mock": "^0.2.2"
}
},
@ -3590,9 +3590,9 @@
}
},
"node_modules/@vitest/coverage-c8": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.31.1.tgz",
"integrity": "sha512-6TkjQpmgYez7e3dbAUoYdRXxWN81BojCmUILJwgCy39uZFG33DsQ0rSRSZC9beAEdCZTpxR63nOvd9hxDQcJ0g==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.32.0.tgz",
"integrity": "sha512-FeTzRN5VCL7B6YTRK5ZPQO2iwJzl2x7/mTQ/2uEeKZatAYBtvczeAYnzSUhCPev7p99+5skxMQZwqVcFTrVCdg==",
"dev": true,
"dependencies": {
"@ampproject/remapping": "^2.2.1",
@ -3621,13 +3621,13 @@
}
},
"node_modules/@vitest/expect": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.31.1.tgz",
"integrity": "sha512-BV1LyNvhnX+eNYzJxlHIGPWZpwJFZaCcOIzp2CNG0P+bbetenTupk6EO0LANm4QFt0TTit+yqx7Rxd1qxi/SQA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.32.0.tgz",
"integrity": "sha512-VxVHhIxKw9Lux+O9bwLEEk2gzOUe93xuFHy9SzYWnnoYZFYg1NfBtnfnYWiJN7yooJ7KNElCK5YtA7DTZvtXtg==",
"dev": true,
"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"
},
"funding": {
@ -3635,12 +3635,12 @@
}
},
"node_modules/@vitest/runner": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.31.1.tgz",
"integrity": "sha512-imWuc82ngOtxdCUpXwtEzZIuc1KMr+VlQ3Ondph45VhWoQWit5yvG/fFcldbnCi8DUuFi+NmNx5ehMUw/cGLUw==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.32.0.tgz",
"integrity": "sha512-QpCmRxftHkr72xt5A08xTEs9I4iWEXIOCHWhQQguWOKE4QH7DXSKZSOFibuwEIMAD7G0ERvtUyQn7iPWIqSwmw==",
"dev": true,
"dependencies": {
"@vitest/utils": "0.31.1",
"@vitest/utils": "0.32.0",
"concordance": "^5.0.4",
"p-limit": "^4.0.0",
"pathe": "^1.1.0"
@ -3677,9 +3677,9 @@
}
},
"node_modules/@vitest/snapshot": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-0.31.1.tgz",
"integrity": "sha512-L3w5uU9bMe6asrNzJ8WZzN+jUTX4KSgCinEJPXyny0o90fG4FPQMV0OWsq7vrCWfQlAilMjDnOF9nP8lidsJ+g==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-0.32.0.tgz",
"integrity": "sha512-yCKorPWjEnzpUxQpGlxulujTcSPgkblwGzAUEL+z01FTUg/YuCDZ8dxr9sHA08oO2EwxzHXNLjQKWJ2zc2a19Q==",
"dev": true,
"dependencies": {
"magic-string": "^0.30.0",
@ -3703,9 +3703,9 @@
}
},
"node_modules/@vitest/spy": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.31.1.tgz",
"integrity": "sha512-1cTpt2m9mdo3hRLDyCG2hDQvRrePTDgEJBFQQNz1ydHHZy03EiA6EpFxY+7ODaY7vMRCie+WlFZBZ0/dQWyssQ==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.32.0.tgz",
"integrity": "sha512-MruAPlM0uyiq3d53BkwTeShXY0rYEfhNGQzVO5GHBmmX3clsxcWp79mMnkOVcV244sNTeDcHbcPFWIjOI4tZvw==",
"dev": true,
"dependencies": {
"tinyspy": "^2.1.0"
@ -3715,9 +3715,9 @@
}
},
"node_modules/@vitest/utils": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.31.1.tgz",
"integrity": "sha512-yFyRD5ilwojsZfo3E0BnH72pSVSuLg2356cN1tCEe/0RtDzxTPYwOomIC+eQbot7m6DRy4tPZw+09mB7NkbMmA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.32.0.tgz",
"integrity": "sha512-53yXunzx47MmbuvcOPpLaVljHaeSu1G2dHdmy7+9ngMnQIkBQcvwOcoclWFnxDMxFbnq8exAfh3aKSZaK71J5A==",
"dev": true,
"dependencies": {
"concordance": "^5.0.4",
@ -7868,9 +7868,9 @@
}
},
"node_modules/pathe": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.0.tgz",
"integrity": "sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz",
"integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==",
"dev": true
},
"node_modules/pathval": {
@ -9487,9 +9487,9 @@
}
},
"node_modules/tinyspy": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.1.0.tgz",
"integrity": "sha512-7eORpyqImoOvkQJCSkL0d0mB4NHHIFAy4b1u8PHdDa7SjGS2njzl6/lyGoZLm+eyYEtlUmFGE0rFj66SWxZgQQ==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.1.1.tgz",
"integrity": "sha512-XPJL2uSzcOyBMky6OFrusqWlzfFrXtE0hPuMgW8A2HmaqrPo4ZQHRN/V0QXN3FSjKxpsbRrFc5LI7KOwBsT1/w==",
"dev": true,
"engines": {
"node": ">=14.0.0"
@ -9613,8 +9613,9 @@
},
"node_modules/type-detect": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=4"
}
@ -9864,9 +9865,9 @@
}
},
"node_modules/vite-node": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.31.1.tgz",
"integrity": "sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.32.0.tgz",
"integrity": "sha512-220P/y8YacYAU+daOAqiGEFXx2A8AwjadDzQqos6wSukjvvTWNqleJSwoUn0ckyNdjHIKoxn93Nh1vWBqEKr3Q==",
"dev": true,
"dependencies": {
"cac": "^6.7.14",
@ -9953,19 +9954,19 @@
"license": "MIT"
},
"node_modules/vitest": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-0.31.1.tgz",
"integrity": "sha512-/dOoOgzoFk/5pTvg1E65WVaobknWREN15+HF+0ucudo3dDG/vCZoXTQrjIfEaWvQXmqScwkRodrTbM/ScMpRcQ==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-0.32.0.tgz",
"integrity": "sha512-SW83o629gCqnV3BqBnTxhB10DAwzwEx3z+rqYZESehUB+eWsJxwcBQx7CKy0otuGMJTYh7qCVuUX23HkftGl/Q==",
"dev": true,
"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",
@ -9981,7 +9982,7 @@
"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"
},
"bin": {
@ -12886,9 +12887,9 @@
}
},
"@vitest/coverage-c8": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.31.1.tgz",
"integrity": "sha512-6TkjQpmgYez7e3dbAUoYdRXxWN81BojCmUILJwgCy39uZFG33DsQ0rSRSZC9beAEdCZTpxR63nOvd9hxDQcJ0g==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/coverage-c8/-/coverage-c8-0.32.0.tgz",
"integrity": "sha512-FeTzRN5VCL7B6YTRK5ZPQO2iwJzl2x7/mTQ/2uEeKZatAYBtvczeAYnzSUhCPev7p99+5skxMQZwqVcFTrVCdg==",
"dev": true,
"requires": {
"@ampproject/remapping": "^2.2.1",
@ -12910,23 +12911,23 @@
}
},
"@vitest/expect": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.31.1.tgz",
"integrity": "sha512-BV1LyNvhnX+eNYzJxlHIGPWZpwJFZaCcOIzp2CNG0P+bbetenTupk6EO0LANm4QFt0TTit+yqx7Rxd1qxi/SQA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-0.32.0.tgz",
"integrity": "sha512-VxVHhIxKw9Lux+O9bwLEEk2gzOUe93xuFHy9SzYWnnoYZFYg1NfBtnfnYWiJN7yooJ7KNElCK5YtA7DTZvtXtg==",
"dev": true,
"requires": {
"@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": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.31.1.tgz",
"integrity": "sha512-imWuc82ngOtxdCUpXwtEzZIuc1KMr+VlQ3Ondph45VhWoQWit5yvG/fFcldbnCi8DUuFi+NmNx5ehMUw/cGLUw==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-0.32.0.tgz",
"integrity": "sha512-QpCmRxftHkr72xt5A08xTEs9I4iWEXIOCHWhQQguWOKE4QH7DXSKZSOFibuwEIMAD7G0ERvtUyQn7iPWIqSwmw==",
"dev": true,
"requires": {
"@vitest/utils": "0.31.1",
"@vitest/utils": "0.32.0",
"concordance": "^5.0.4",
"p-limit": "^4.0.0",
"pathe": "^1.1.0"
@ -12950,9 +12951,9 @@
}
},
"@vitest/snapshot": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-0.31.1.tgz",
"integrity": "sha512-L3w5uU9bMe6asrNzJ8WZzN+jUTX4KSgCinEJPXyny0o90fG4FPQMV0OWsq7vrCWfQlAilMjDnOF9nP8lidsJ+g==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-0.32.0.tgz",
"integrity": "sha512-yCKorPWjEnzpUxQpGlxulujTcSPgkblwGzAUEL+z01FTUg/YuCDZ8dxr9sHA08oO2EwxzHXNLjQKWJ2zc2a19Q==",
"dev": true,
"requires": {
"magic-string": "^0.30.0",
@ -12972,18 +12973,18 @@
}
},
"@vitest/spy": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.31.1.tgz",
"integrity": "sha512-1cTpt2m9mdo3hRLDyCG2hDQvRrePTDgEJBFQQNz1ydHHZy03EiA6EpFxY+7ODaY7vMRCie+WlFZBZ0/dQWyssQ==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-0.32.0.tgz",
"integrity": "sha512-MruAPlM0uyiq3d53BkwTeShXY0rYEfhNGQzVO5GHBmmX3clsxcWp79mMnkOVcV244sNTeDcHbcPFWIjOI4tZvw==",
"dev": true,
"requires": {
"tinyspy": "^2.1.0"
}
},
"@vitest/utils": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.31.1.tgz",
"integrity": "sha512-yFyRD5ilwojsZfo3E0BnH72pSVSuLg2356cN1tCEe/0RtDzxTPYwOomIC+eQbot7m6DRy4tPZw+09mB7NkbMmA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-0.32.0.tgz",
"integrity": "sha512-53yXunzx47MmbuvcOPpLaVljHaeSu1G2dHdmy7+9ngMnQIkBQcvwOcoclWFnxDMxFbnq8exAfh3aKSZaK71J5A==",
"dev": true,
"requires": {
"concordance": "^5.0.4",
@ -15665,9 +15666,9 @@
"dev": true
},
"pathe": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.0.tgz",
"integrity": "sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz",
"integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==",
"dev": true
},
"pathval": {
@ -16707,9 +16708,9 @@
"dev": true
},
"tinyspy": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.1.0.tgz",
"integrity": "sha512-7eORpyqImoOvkQJCSkL0d0mB4NHHIFAy4b1u8PHdDa7SjGS2njzl6/lyGoZLm+eyYEtlUmFGE0rFj66SWxZgQQ==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.1.1.tgz",
"integrity": "sha512-XPJL2uSzcOyBMky6OFrusqWlzfFrXtE0hPuMgW8A2HmaqrPo4ZQHRN/V0QXN3FSjKxpsbRrFc5LI7KOwBsT1/w==",
"dev": true
},
"to-fast-properties": {
@ -16794,6 +16795,8 @@
},
"type-detect": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
"dev": true
},
"type-fest": {
@ -16925,9 +16928,9 @@
}
},
"vite-node": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.31.1.tgz",
"integrity": "sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.32.0.tgz",
"integrity": "sha512-220P/y8YacYAU+daOAqiGEFXx2A8AwjadDzQqos6wSukjvvTWNqleJSwoUn0ckyNdjHIKoxn93Nh1vWBqEKr3Q==",
"dev": true,
"requires": {
"cac": "^6.7.14",
@ -16982,19 +16985,19 @@
}
},
"vitest": {
"version": "0.31.1",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-0.31.1.tgz",
"integrity": "sha512-/dOoOgzoFk/5pTvg1E65WVaobknWREN15+HF+0ucudo3dDG/vCZoXTQrjIfEaWvQXmqScwkRodrTbM/ScMpRcQ==",
"version": "0.32.0",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-0.32.0.tgz",
"integrity": "sha512-SW83o629gCqnV3BqBnTxhB10DAwzwEx3z+rqYZESehUB+eWsJxwcBQx7CKy0otuGMJTYh7qCVuUX23HkftGl/Q==",
"dev": true,
"requires": {
"@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",
@ -17010,7 +17013,7 @@
"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"
},
"dependencies": {

View file

@ -84,7 +84,7 @@
"@types/react-tag-autocomplete": "^6.3.0",
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/coverage-c8": "^0.31.1",
"@vitest/coverage-c8": "^0.32.0",
"adm-zip": "^0.5.10",
"chalk": "^5.2.0",
"eslint": "^8.30.0",
@ -95,7 +95,7 @@
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vite-plugin-pwa": "^0.14.4",
"vitest": "^0.31.1",
"vitest": "^0.32.0",
"vitest-canvas-mock": "^0.2.2"
},
"browserslist": [