From 28b0dc15eec6acb63ce3856b5d664265f16cf372 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:46:37 +0000 Subject: [PATCH] chore(deps): update dependency vitest to v0.25.1 (#1185) 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.24.5` -> `0.25.1`](https://renovatebot.com/diffs/npm/vitest/0.24.5/0.25.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/compatibility-slim/0.24.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/confidence-slim/0.24.5)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.24.3` -> `0.25.1`](https://renovatebot.com/diffs/npm/vitest/0.24.3/0.25.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/compatibility-slim/0.24.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/confidence-slim/0.24.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
vitest-dev/vitest ### [`v0.25.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.0...v0.25.1) #####    🚀 Features - Add `vi.setConfig` helper  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2293](https://togithub.com/vitest-dev/vitest/issues/2293) - Allow hooks to be executed in a stack or list  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2294](https://togithub.com/vitest-dev/vitest/issues/2294) #####    🐞 Bug Fixes - Always rewrite defined jsdom keys  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2290](https://togithub.com/vitest-dev/vitest/issues/2290) - Default reporter regression  -  by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2292](https://togithub.com/vitest-dev/vitest/issues/2292) - Don't fail `bench` when using options  -  by [@​poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2295](https://togithub.com/vitest-dev/vitest/issues/2295) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.0...v0.25.1) ### [`v0.25.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.5...v0.25.0) #####    ✅ Builtin TypeChecking In v0.25.0, Vitest allows you to write tests for your types, using `expectTypeOf` or `assertType` syntaxes. By default all tests inside `*.test-d.ts` files are considered type tests. Run `vitest typecheck` to run type tests. ```ts // my.test-d.ts import { assertType, expectTypeOf } from 'vitest' import { mount } from './mount.js' test('my types work properly', () => { expectTypeOf(mount).toBeFunction() expectTypeOf(mount).parameter(0).toMatchTypeOf<{ name: string }>() // @​ts-expect-error name is a string assertType(mount({ name: 42 })) }) ``` Learn more at [the documentation](https://vitest.dev/guide/testing-types.html) and this [RFC](https://togithub.com/vitest-dev/vitest/issues/1954) #####    🚨 Breaking Changes - Return context in `startVitest()`  -  by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2072](https://togithub.com/vitest-dev/vitest/issues/2072) #####    🚀 Features - `onTestFailed` hook  -  by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2210](https://togithub.com/vitest-dev/vitest/issues/2210) - Display error frame if present (like Vite)  -  by [@​haikyuu](https://togithub.com/haikyuu) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2257](https://togithub.com/vitest-dev/vitest/issues/2257) - Benchmark table report  -  by [@​poyoho](https://togithub.com/poyoho) in [https://github.com/vitest-dev/vitest/issues/2179](https://togithub.com/vitest-dev/vitest/issues/2179) - Add typechecking functionality  -  by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2107](https://togithub.com/vitest-dev/vitest/issues/2107) #####    🐞 Bug Fixes - Clear full screen only in watch mode  -  by [@​sheremet-va](https://togithub.com/sheremet-va) [(c3d89)](https://togithub.com/vitest-dev/vitest/commit/c3d89504) - Don't serialize symbols and immutables  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2266](https://togithub.com/vitest-dev/vitest/issues/2266) - Use --conditions instead of -C  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2267](https://togithub.com/vitest-dev/vitest/issues/2267) - Show correct stack trace in errors and console  -  by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2248](https://togithub.com/vitest-dev/vitest/issues/2248) - Align `.each` behavior with jest  -  by [@​bartoszgolebiowski](https://togithub.com/bartoszgolebiowski) and [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2064](https://togithub.com/vitest-dev/vitest/issues/2064) - Remove undefined values in options  -  by [@​g4rry420](https://togithub.com/g4rry420) and [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/2281](https://togithub.com/vitest-dev/vitest/issues/2281) - **coverage**: Istanbul provider to preserve implicit else  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/2275](https://togithub.com/vitest-dev/vitest/issues/2275) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.5...v0.25.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 these updates 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/fwouts/previewjs). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- app-foundations/package.json | 2 +- csf3/package.json | 2 +- frameworks/react/package.json | 2 +- frameworks/solid/package.json | 2 +- frameworks/svelte/package.json | 2 +- frameworks/vue2/package.json | 2 +- frameworks/vue3/package.json | 2 +- pnpm-lock.yaml | 100 ++++++++++--------------------- properties/package.json | 2 +- serializable-values/package.json | 2 +- type-analyzer/package.json | 2 +- vfs/package.json | 2 +- 12 files changed, 42 insertions(+), 80 deletions(-) diff --git a/app-foundations/package.json b/app-foundations/package.json index 1887259488e..8e6e803ff84 100644 --- a/app-foundations/package.json +++ b/app-foundations/package.json @@ -62,6 +62,6 @@ "tailwindcss": "3.2.3", "typescript": "4.8.4", "unbuild": "0.9.1", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/csf3/package.json b/csf3/package.json index f27bc759b5f..8fe51b10a97 100644 --- a/csf3/package.json +++ b/csf3/package.json @@ -37,6 +37,6 @@ "devDependencies": { "@previewjs/vfs": "workspace:*", "unbuild": "0.9.1", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/frameworks/react/package.json b/frameworks/react/package.json index 77a158235e4..e9dcf238729 100644 --- a/frameworks/react/package.json +++ b/frameworks/react/package.json @@ -45,6 +45,6 @@ "react": "18.2.0", "rimraf": "3.0.2", "vite": "3.2.3", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/frameworks/solid/package.json b/frameworks/solid/package.json index a566a3d2c73..ecf6d0d29cf 100644 --- a/frameworks/solid/package.json +++ b/frameworks/solid/package.json @@ -45,6 +45,6 @@ "rimraf": "3.0.2", "solid-js": "1.6.1", "vite": "3.2.3", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/frameworks/svelte/package.json b/frameworks/svelte/package.json index 3000efe6e5d..02e4ab91c22 100644 --- a/frameworks/svelte/package.json +++ b/frameworks/svelte/package.json @@ -41,6 +41,6 @@ "@types/fs-extra": "^9.0.13", "rimraf": "3.0.2", "vite": "3.2.3", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/frameworks/vue2/package.json b/frameworks/vue2/package.json index af3b2403ee5..1485007c7a1 100644 --- a/frameworks/vue2/package.json +++ b/frameworks/vue2/package.json @@ -43,6 +43,6 @@ "@types/fs-extra": "9.0.13", "rimraf": "3.0.2", "vite": "3.2.3", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/frameworks/vue3/package.json b/frameworks/vue3/package.json index 732cd679087..07d958befa2 100644 --- a/frameworks/vue3/package.json +++ b/frameworks/vue3/package.json @@ -48,6 +48,6 @@ "@types/fs-extra": "9.0.13", "rimraf": "3.0.2", "vite": "3.2.3", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d4a4a2c240f..8cd658d92a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -145,7 +145,7 @@ importers: tailwindcss: 3.2.3 typescript: 4.8.4 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@fortawesome/fontawesome-svg-core': 6.2.0 '@fortawesome/free-brands-svg-icons': 6.2.0 @@ -177,7 +177,7 @@ importers: tailwindcss: 3.2.3_postcss@8.4.18 typescript: 4.8.4 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 config: specifiers: @@ -267,7 +267,7 @@ importers: '@previewjs/vfs': workspace:* typescript: ^4.8.4 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@previewjs/core': link:../core '@previewjs/type-analyzer': link:../type-analyzer @@ -275,7 +275,7 @@ importers: devDependencies: '@previewjs/vfs': link:../vfs unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dev-workspace: specifiers: @@ -347,7 +347,7 @@ importers: rimraf: 3.0.2 typescript: ^4.8.4 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@previewjs/csf3': link:../../csf3 '@previewjs/type-analyzer': link:../../type-analyzer @@ -361,7 +361,7 @@ importers: react: 18.2.0 rimraf: 3.0.2 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 frameworks/react/preview: specifiers: @@ -391,7 +391,7 @@ importers: typescript: ^4.8.4 vite: 3.2.3 vite-plugin-solid: ^2.4.0 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@previewjs/csf3': link:../../csf3 '@previewjs/type-analyzer': link:../../type-analyzer @@ -403,7 +403,7 @@ importers: rimraf: 3.0.2 solid-js: 1.6.1 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 frameworks/solid/preview: specifiers: @@ -427,7 +427,7 @@ importers: svelte: ^3.52.0 typescript: ^4.8.4 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@previewjs/csf3': link:../../csf3 '@previewjs/type-analyzer': link:../../type-analyzer @@ -441,7 +441,7 @@ importers: '@types/fs-extra': 9.0.13 rimraf: 3.0.2 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 frameworks/svelte/preview: specifiers: @@ -465,7 +465,7 @@ importers: typescript: ^4.8.4 vite: 3.2.3 vite-plugin-vue2: ^2.0.2 - vitest: 0.24.5 + vitest: 0.25.1 vue: ^2.7.14 vue-template-compiler: ^2.7.14 dependencies: @@ -483,7 +483,7 @@ importers: '@types/fs-extra': 9.0.13 rimraf: 3.0.2 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 frameworks/vue2/preview: specifiers: @@ -513,7 +513,7 @@ importers: rimraf: 3.0.2 typescript: ^4.8.4 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 vue: ^3 dependencies: '@previewjs/csf3': link:../../csf3 @@ -531,7 +531,7 @@ importers: '@types/fs-extra': 9.0.13 rimraf: 3.0.2 vite: 3.2.3 - vitest: 0.24.5 + vitest: 0.25.1 frameworks/vue3/preview: specifiers: @@ -661,13 +661,13 @@ importers: '@previewjs/serializable-values': ^3.1.0 '@previewjs/type-analyzer': ^4.0.6 unbuild: 0.9.1 - vitest: 0.24.3 + vitest: 0.25.1 dependencies: '@previewjs/serializable-values': link:../serializable-values '@previewjs/type-analyzer': link:../type-analyzer devDependencies: unbuild: 0.9.1 - vitest: 0.24.3 + vitest: 0.25.1 serializable-values: specifiers: @@ -678,7 +678,7 @@ importers: prettier: ^2.7.1 typescript: ^4.8.4 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@faker-js/faker': 7.6.0 '@previewjs/type-analyzer': link:../type-analyzer @@ -688,7 +688,7 @@ importers: devDependencies: '@types/prettier': 2.7.1 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 server: specifiers: @@ -1870,7 +1870,7 @@ importers: prettier: ^2.7.1 typescript: ^4.8.4 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: '@previewjs/vfs': link:../vfs assert-never: 1.2.1 @@ -1881,7 +1881,7 @@ importers: '@types/prettier': 2.7.1 lodash: 4.17.21 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 vfs: specifiers: @@ -1890,7 +1890,7 @@ importers: chokidar: ^3.5.3 fs-extra: ^10.1.0 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 dependencies: assert-never: 1.2.1 chokidar: 3.5.3 @@ -1898,7 +1898,7 @@ importers: devDependencies: '@types/fs-extra': 9.0.13 unbuild: 0.9.1 - vitest: 0.24.5 + vitest: 0.25.1 packages: @@ -2402,6 +2402,7 @@ packages: /@babel/helper-plugin-utils/7.19.0: resolution: {integrity: sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==} engines: {node: '>=6.9.0'} + dev: true /@babel/helper-plugin-utils/7.20.2: resolution: {integrity: sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==} @@ -3487,7 +3488,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.3 - '@babel/helper-plugin-utils': 7.19.0 + '@babel/helper-plugin-utils': 7.20.2 /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.19.1: resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} @@ -3495,7 +3496,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.19.1 - '@babel/helper-plugin-utils': 7.19.0 + '@babel/helper-plugin-utils': 7.20.2 dev: false /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.19.6: @@ -3504,7 +3505,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.19.6 - '@babel/helper-plugin-utils': 7.19.0 + '@babel/helper-plugin-utils': 7.20.2 /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.12.3: resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} @@ -33691,50 +33692,8 @@ packages: vite: 3.2.3 dev: false - /vitest/0.24.3: - resolution: {integrity: sha512-aM0auuPPgMSstWvr851hB74g/LKaKBzSxcG3da7ejfZbx08Y21JpZmbmDYrMTCGhVZKqTGwzcnLMwyfz2WzkhQ==} - engines: {node: '>=v14.16.0'} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@vitest/browser': '*' - '@vitest/ui': '*' - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - dependencies: - '@types/chai': 4.3.3 - '@types/chai-subset': 1.3.3 - '@types/node': 18.11.9 - chai: 4.3.6 - debug: 4.3.4 - local-pkg: 0.4.2 - strip-literal: 0.4.2 - tinybench: 2.3.1 - tinypool: 0.3.0 - tinyspy: 1.0.2 - vite: 3.2.3_@types+node@18.11.9 - transitivePeerDependencies: - - less - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vitest/0.24.5: - resolution: {integrity: sha512-zw6JhPUHtLILQDe5Q39b/SzoITkG+R7hcFjuthp4xsi6zpmfQPOZcHodZ+3bqoWl4EdGK/p1fuMiEwdxgbGLOA==} + /vitest/0.25.1: + resolution: {integrity: sha512-eH74h6MkuEgsqR4mAQZeMK9O0PROiKY+i+1GMz/fBi5A3L2ml5U7JQs7LfPU7+uWUziZyLHagl+rkyfR8SLhlA==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: @@ -33758,9 +33717,12 @@ packages: '@types/chai': 4.3.3 '@types/chai-subset': 1.3.3 '@types/node': 18.11.9 + acorn: 8.8.1 + acorn-walk: 8.2.0 chai: 4.3.6 debug: 4.3.4 local-pkg: 0.4.2 + source-map: 0.6.1 strip-literal: 0.4.2 tinybench: 2.3.1 tinypool: 0.3.0 diff --git a/properties/package.json b/properties/package.json index f0c1816def5..5f282e8eae5 100644 --- a/properties/package.json +++ b/properties/package.json @@ -35,6 +35,6 @@ }, "devDependencies": { "unbuild": "0.9.1", - "vitest": "0.24.3" + "vitest": "0.25.1" } } diff --git a/serializable-values/package.json b/serializable-values/package.json index 2d4503d35fd..d51289aeaa2 100644 --- a/serializable-values/package.json +++ b/serializable-values/package.json @@ -39,6 +39,6 @@ "devDependencies": { "@types/prettier": "2.7.1", "unbuild": "0.9.1", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/type-analyzer/package.json b/type-analyzer/package.json index 9919d80576f..732c72ece60 100644 --- a/type-analyzer/package.json +++ b/type-analyzer/package.json @@ -40,6 +40,6 @@ "@types/prettier": "2.7.1", "lodash": "^4.17.21", "unbuild": "0.9.1", - "vitest": "0.24.5" + "vitest": "0.25.1" } } diff --git a/vfs/package.json b/vfs/package.json index 42320a4d997..80dadf906d4 100644 --- a/vfs/package.json +++ b/vfs/package.json @@ -37,6 +37,6 @@ "devDependencies": { "@types/fs-extra": "9.0.13", "unbuild": "0.9.1", - "vitest": "0.24.5" + "vitest": "0.25.1" } }