From 77910de163d007995052d8657dc2b57a25e83ee3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 7 May 2023 02:40:05 +0000 Subject: [PATCH] chore(deps): update dependency vitest to ^0.31.0 (#210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vitest](https://togithub.com/vitest-dev/vitest) | [`^0.30.0` -> `^0.31.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.31.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
vitest-dev/vitest ### [`v0.31.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.0) #####    🚨 Breaking Changes - Update mock implementation to support ESM runtime, introduce "vi.hoisted"  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3258](https://togithub.com/vitest-dev/vitest/issues/3258) [(0c09a)](https://togithub.com/vitest-dev/vitest/commit/0c09a40d) - Bypass ESM import order restriction with `vi.hoisted` to run code before imports are executed: ```ts vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1))) ``` You can also use it to pass variables to `vi.mock`: ```ts const { mockedMethod } = vi.hoisted(() => { return { mockedMethod: vi.fn() } }) vi.mocked('./path/to/module.js', () => { return { originalMethod: mockedMethod } }) ``` - Move assertion declarations to expect package  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3294](https://togithub.com/vitest-dev/vitest/issues/3294) [(cf3af)](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b) - The change should be minor: ```diff - declare namespace Vi { + declare module 'vitest' { interface Assertion extends CustomMatchers {} interface AsymmetricMatchersContaining extends CustomMatchers {} } ``` #####    🚀 Features - Add repeat method to tests  -  by [@​samkevin1](https://togithub.com/samkevin1) in [https://github.com/vitest-dev/vitest/issues/2652](https://togithub.com/vitest-dev/vitest/issues/2652) [(7c8f0)](https://togithub.com/vitest-dev/vitest/commit/7c8f0ba9) - Add an option to hide skipped test lines  -  by [@​g4rry420](https://togithub.com/g4rry420) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2745](https://togithub.com/vitest-dev/vitest/issues/2745) [(9bdb1)](https://togithub.com/vitest-dev/vitest/commit/9bdb1603) - **coverage**: Watermarks for c8  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3254](https://togithub.com/vitest-dev/vitest/issues/3254) [(730af)](https://togithub.com/vitest-dev/vitest/commit/730af0b4) - **ui**: Add html coverage  -  by [@​userquin](https://togithub.com/userquin) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3071](https://togithub.com/vitest-dev/vitest/issues/3071) [(e24cd)](https://togithub.com/vitest-dev/vitest/commit/e24cd9b2) - **watch**: Test run cancelling, feat: `--bail` option for cancelling test run  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3163](https://togithub.com/vitest-dev/vitest/issues/3163) [(8d460)](https://togithub.com/vitest-dev/vitest/commit/8d4606eb) #####    🐞 Bug Fixes - Don't call global setup teardown twice  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3188](https://togithub.com/vitest-dev/vitest/issues/3188) [(ba3d1)](https://togithub.com/vitest-dev/vitest/commit/ba3d1338) - Reporter to log version before provider initalizations  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3131](https://togithub.com/vitest-dev/vitest/issues/3131) [(481b1)](https://togithub.com/vitest-dev/vitest/commit/481b1fd2) - Throw an error if Vitest cannot access its internal state  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3250](https://togithub.com/vitest-dev/vitest/issues/3250) [(fbb14)](https://togithub.com/vitest-dev/vitest/commit/fbb1468e) - Warning suppression broken  -  by [@​IceQub3](https://togithub.com/IceQub3) in [https://github.com/vitest-dev/vitest/issues/3270](https://togithub.com/vitest-dev/vitest/issues/3270) and [https://github.com/vitest-dev/vitest/issues/3271](https://togithub.com/vitest-dev/vitest/issues/3271) [(036de)](https://togithub.com/vitest-dev/vitest/commit/036de797) - Show correct diff in "toHaveBeenCalledWith"  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3289](https://togithub.com/vitest-dev/vitest/issues/3289) [(19fcd)](https://togithub.com/vitest-dev/vitest/commit/19fcd8df) - Don't print esm warning, if package name is not found  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3292](https://togithub.com/vitest-dev/vitest/issues/3292) [(62c14)](https://togithub.com/vitest-dev/vitest/commit/62c14cba) - Support exactOptionalPropertyTypes  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3293](https://togithub.com/vitest-dev/vitest/issues/3293) [(ba81d)](https://togithub.com/vitest-dev/vitest/commit/ba81d8a3) - Don't inline vite hmr and rollup types  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3291](https://togithub.com/vitest-dev/vitest/issues/3291) [(1f118)](https://togithub.com/vitest-dev/vitest/commit/1f1189bc) - **browser**: - Failing to load vitest/utils  -  by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3190](https://togithub.com/vitest-dev/vitest/issues/3190) [(78bad)](https://togithub.com/vitest-dev/vitest/commit/78bad4ab) - **coverage**: - `thresholdAutoUpdate` to work with `perFile`  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3182](https://togithub.com/vitest-dev/vitest/issues/3182) [(29eeb)](https://togithub.com/vitest-dev/vitest/commit/29eebf65) - Throw error if fail to load built-in provider  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3217](https://togithub.com/vitest-dev/vitest/issues/3217) [(0a287)](https://togithub.com/vitest-dev/vitest/commit/0a2875e3) - Stackblitz hangs with c8  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3225](https://togithub.com/vitest-dev/vitest/issues/3225) [(d9fda)](https://togithub.com/vitest-dev/vitest/commit/d9fda2a1) - C8 to ignore vite's generated helpers  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3241](https://togithub.com/vitest-dev/vitest/issues/3241) [(21942)](https://togithub.com/vitest-dev/vitest/commit/21942db0) - Workspaces c8 source maps  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3226](https://togithub.com/vitest-dev/vitest/issues/3226) [(efce3)](https://togithub.com/vitest-dev/vitest/commit/efce3b4d) - **docs**: - Correct typo and broken link to WebdriverIO  -  by [@​nathanbabcock](https://togithub.com/nathanbabcock) in [https://github.com/vitest-dev/vitest/issues/3275](https://togithub.com/vitest-dev/vitest/issues/3275) [(c7da1)](https://togithub.com/vitest-dev/vitest/commit/c7da155f) - **spy**: - Update to set initial implementation through normal logic  -  by [@​Codex-](https://togithub.com/Codex-) in [https://github.com/vitest-dev/vitest/issues/3260](https://togithub.com/vitest-dev/vitest/issues/3260) and [https://github.com/vitest-dev/vitest/issues/3263](https://togithub.com/vitest-dev/vitest/issues/3263) [(c759a)](https://togithub.com/vitest-dev/vitest/commit/c759a9aa) - **vite-node**: - Circular imports  -  by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/3196](https://togithub.com/vitest-dev/vitest/issues/3196) [(cbb59)](https://togithub.com/vitest-dev/vitest/commit/cbb593a8) - Add missing `import.meta.hot.send` mock  -  by [@​antfu](https://togithub.com/antfu) [(b1624)](https://togithub.com/vitest-dev/vitest/commit/b1624db5) - **vitest**: - Also check for vite relative to vitest package  -  by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3274](https://togithub.com/vitest-dev/vitest/issues/3274) [(a3393)](https://togithub.com/vitest-dev/vitest/commit/a3393b15) - **watch**: - Run test files when added to filesystem  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3189](https://togithub.com/vitest-dev/vitest/issues/3189) [(7b2c8)](https://togithub.com/vitest-dev/vitest/commit/7b2c81bc) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.0)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/JoshuaKGoldberg/ts-api-utils). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 63 +++++++++++++++++++++++++------------------------- 2 files changed, 32 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index dffcf33c..451bf384 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "typedoc-plugin-mdn-links": "^3.0.0", "typedoc-plugin-versions": "^0.2.3", "typescript": "^5.0.2", - "vitest": "^0.30.0" + "vitest": "^0.31.0" }, "peerDependencies": { "typescript": ">=4.2.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f2e2edf7..73fceecc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,13 +43,13 @@ specifiers: typedoc-plugin-mdn-links: ^3.0.0 typedoc-plugin-versions: ^0.2.3 typescript: ^5.0.2 - vitest: ^0.30.0 + vitest: ^0.31.0 devDependencies: '@typescript-eslint/eslint-plugin': 5.54.0_i35x2evwqdd6ptegpuvrz5ocmm '@typescript-eslint/parser': 5.54.0_byynos7ffx3cepxtk6gvolkky4 '@typescript/vfs': 1.4.0 - '@vitest/coverage-istanbul': 0.31.0_vitest@0.30.1 + '@vitest/coverage-istanbul': 0.31.0_vitest@0.31.0 cspell: 6.27.0 eslint: 8.35.0 eslint-config-prettier: 8.6.0_eslint@8.35.0 @@ -88,7 +88,7 @@ devDependencies: typedoc-plugin-mdn-links: 3.0.3_typedoc@0.24.1 typedoc-plugin-versions: 0.2.3_typedoc@0.24.1 typescript: 5.0.2 - vitest: 0.30.1 + vitest: 0.31.0 packages: @@ -1773,7 +1773,7 @@ packages: - supports-color dev: true - /@vitest/coverage-istanbul/0.31.0_vitest@0.30.1: + /@vitest/coverage-istanbul/0.31.0_vitest@0.31.0: resolution: {integrity: sha512-SaTI1PSpCRtBhJ5ihBx7Z+jgrFAQlDjuI4MFmKQ/HjyYWzEoaU+I062SquRrOLjJtVOHnwJdjVJXKi0dgFiR9Q==} peerDependencies: vitest: '>=0.30.0 <1' @@ -1784,44 +1784,44 @@ packages: istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 test-exclude: 6.0.0 - vitest: 0.30.1 + vitest: 0.31.0 transitivePeerDependencies: - supports-color dev: true - /@vitest/expect/0.30.1: - resolution: {integrity: sha512-c3kbEtN8XXJSeN81iDGq29bUzSjQhjES2WR3aColsS4lPGbivwLtas4DNUe0jD9gg/FYGIteqOenfU95EFituw==} + /@vitest/expect/0.31.0: + resolution: {integrity: sha512-Jlm8ZTyp6vMY9iz9Ny9a0BHnCG4fqBa8neCF6Pk/c/6vkUk49Ls6UBlgGAU82QnzzoaUs9E/mUhq/eq9uMOv/g==} dependencies: - '@vitest/spy': 0.30.1 - '@vitest/utils': 0.30.1 + '@vitest/spy': 0.31.0 + '@vitest/utils': 0.31.0 chai: 4.3.7 dev: true - /@vitest/runner/0.30.1: - resolution: {integrity: sha512-W62kT/8i0TF1UBCNMRtRMOBWJKRnNyv9RrjIgdUryEe0wNpGZvvwPDLuzYdxvgSckzjp54DSpv1xUbv4BQ0qVA==} + /@vitest/runner/0.31.0: + resolution: {integrity: sha512-H1OE+Ly7JFeBwnpHTrKyCNm/oZgr+16N4qIlzzqSG/YRQDATBYmJb/KUn3GrZaiQQyL7GwpNHVZxSQd6juLCgw==} dependencies: - '@vitest/utils': 0.30.1 + '@vitest/utils': 0.31.0 concordance: 5.0.4 p-limit: 4.0.0 pathe: 1.1.0 dev: true - /@vitest/snapshot/0.30.1: - resolution: {integrity: sha512-fJZqKrE99zo27uoZA/azgWyWbFvM1rw2APS05yB0JaLwUIg9aUtvvnBf4q7JWhEcAHmSwbrxKFgyBUga6tq9Tw==} + /@vitest/snapshot/0.31.0: + resolution: {integrity: sha512-5dTXhbHnyUMTMOujZPB0wjFjQ6q5x9c8TvAsSPUNKjp1tVU7i9pbqcKPqntyu2oXtmVxKbuHCqrOd+Ft60r4tg==} dependencies: magic-string: 0.30.0 pathe: 1.1.0 pretty-format: 27.5.1 dev: true - /@vitest/spy/0.30.1: - resolution: {integrity: sha512-YfJeIf37GvTZe04ZKxzJfnNNuNSmTEGnla2OdL60C8od16f3zOfv9q9K0nNii0NfjDJRt/CVN/POuY5/zTS+BA==} + /@vitest/spy/0.31.0: + resolution: {integrity: sha512-IzCEQ85RN26GqjQNkYahgVLLkULOxOm5H/t364LG0JYb3Apg0PsYCHLBYGA006+SVRMWhQvHlBBCyuByAMFmkg==} dependencies: tinyspy: 2.1.0 dev: true - /@vitest/utils/0.30.1: - resolution: {integrity: sha512-/c8Xv2zUVc+rnNt84QF0Y0zkfxnaGhp87K2dYJMLtLOIckPzuxLVzAtFCicGFdB4NeBHNzTRr1tNn7rCtQcWFA==} + /@vitest/utils/0.31.0: + resolution: {integrity: sha512-kahaRyLX7GS1urekRXN2752X4gIgOGVX4Wo8eDUGUkTWlGpXzf5ZS6N9RUUS+Re3XEE8nVGqNyxkSxF5HXlGhQ==} dependencies: concordance: 5.0.4 loupe: 2.3.6 @@ -6946,8 +6946,8 @@ packages: resolution: {integrity: sha512-iyziEiyFxX4kyxSp+MtY1oCH/lvjH3PxFN8PGCDeqcZWAJ/i+9y+nL85w99PxVzrIvew/GSkSbDYtiGVa85Afg==} dev: true - /tinypool/0.4.0: - resolution: {integrity: sha512-2ksntHOKf893wSAH4z/+JbPpi92esw8Gn9N2deXX+B0EO92hexAVI9GIZZPx7P5aYo5KULfeOSt3kMOmSOy6uA==} + /tinypool/0.5.0: + resolution: {integrity: sha512-paHQtnrlS1QZYKF/GnLoOM/DN9fqaGOFbCbxzAhwniySnzl9Ebk8w73/dd34DAhe/obUbPAOldTyYXQZxnPBPQ==} engines: {node: '>=14.0.0'} dev: true @@ -7356,8 +7356,8 @@ packages: builtins: 5.0.1 dev: true - /vite-node/0.30.1_@types+node@18.14.4: - resolution: {integrity: sha512-vTikpU/J7e6LU/8iM3dzBo8ZhEiKZEKRznEMm+mJh95XhWaPrJQraT/QsT2NWmuEf+zgAoMe64PKT7hfZ1Njmg==} + /vite-node/0.31.0_@types+node@18.14.4: + resolution: {integrity: sha512-8x1x1LNuPvE2vIvkSB7c1mApX5oqlgsxzHQesYF7l5n1gKrEmrClIiZuOFbFDQcjLsmcWSwwmrWrcGWm9Fxc/g==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: @@ -7411,8 +7411,8 @@ packages: fsevents: 2.3.2 dev: true - /vitest/0.30.1: - resolution: {integrity: sha512-y35WTrSTlTxfMLttgQk4rHcaDkbHQwDP++SNwPb+7H8yb13Q3cu2EixrtHzF27iZ8v0XCciSsLg00RkPAzB/aA==} + /vitest/0.31.0: + resolution: {integrity: sha512-JwWJS9p3GU9GxkG7eBSmr4Q4x4bvVBSswaCFf1PBNHiPx00obfhHRJfgHcnI0ffn+NMlIh9QGvG75FlaIBdKGA==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -7445,11 +7445,11 @@ packages: '@types/chai': 4.3.4 '@types/chai-subset': 1.3.3 '@types/node': 18.14.4 - '@vitest/expect': 0.30.1 - '@vitest/runner': 0.30.1 - '@vitest/snapshot': 0.30.1 - '@vitest/spy': 0.30.1 - '@vitest/utils': 0.30.1 + '@vitest/expect': 0.31.0 + '@vitest/runner': 0.31.0 + '@vitest/snapshot': 0.31.0 + '@vitest/spy': 0.31.0 + '@vitest/utils': 0.31.0 acorn: 8.8.2 acorn-walk: 8.2.0 cac: 6.7.14 @@ -7460,13 +7460,12 @@ packages: magic-string: 0.30.0 pathe: 1.1.0 picocolors: 1.0.0 - source-map: 0.6.1 std-env: 3.3.2 strip-literal: 1.0.1 tinybench: 2.4.0 - tinypool: 0.4.0 + tinypool: 0.5.0 vite: 4.1.4_@types+node@18.14.4 - vite-node: 0.30.1_@types+node@18.14.4 + vite-node: 0.31.0_@types+node@18.14.4 why-is-node-running: 2.2.2 transitivePeerDependencies: - less