From 62d2bd82bf74735f7f82b8d19ac7859b672315a7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2025 18:10:55 +0000 Subject: [PATCH] chore(deps): update dependency vitest to v3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ##### [v3.0.0](/~https://github.com/vitest-dev/vitest/releases/tag/v3.0.0) #####    🚨 Breaking Changes - `spy.mockReset` changes  -  by [@Lordfirespeed](/~https://github.com/Lordfirespeed) in /~https://github.com/vitest-dev/vitest/issues/6426 [(db7a8)](/~https://github.com/vitest-dev/vitest/commit/db7a8888) - Pass down context to test hooks  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7034 [(82c2e)](/~https://github.com/vitest-dev/vitest/commit/82c2e244) - Support Vite 6  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7026 [(7abe8)](/~https://github.com/vitest-dev/vitest/commit/7abe854c) - **coverage**: Always exclude test files  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7254 [(b5268)](/~https://github.com/vitest-dev/vitest/commit/b5268965) - **deps**: Update fake-timers to v14.0.0  -  by [@xxzefgh](/~https://github.com/xxzefgh) and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7097 [(c98b4)](/~https://github.com/vitest-dev/vitest/commit/c98b4b1c) - **expect**: Check more properties for error equality  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/5876 [(10023)](/~https://github.com/vitest-dev/vitest/commit/100230e9) - **runner**: Support `describe(..., { shuffle: boolean })` and inherit from parent suite  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6670 [(aa1da)](/~https://github.com/vitest-dev/vitest/commit/aa1dac3d) - **snapshot**: Reset snapshot state for `retry` and `repeats`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6817 [(e8ce9)](/~https://github.com/vitest-dev/vitest/commit/e8ce94cf) - **spy**: SpyOn reuses mock if method is already spyed on  -  by [@sheremet-va](/~https://github.com/sheremet-va) and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6464 [(b3e43)](/~https://github.com/vitest-dev/vitest/commit/b3e43d04) - **vitest**: Don't expose default toFake config  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6288 [(e3144)](/~https://github.com/vitest-dev/vitest/commit/e3144fd8) #####    🚀 Features - Support inline `diff` options and support `printBasicPrototype`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa), [@sheremet-va](/~https://github.com/sheremet-va) and **Michał Grzegorzewski** in /~https://github.com/vitest-dev/vitest/issues/6740 [(39186)](/~https://github.com/vitest-dev/vitest/commit/391860f7) - Allow a custom note when calling `ctx.skip()` dynamically  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6805 [(697c3)](/~https://github.com/vitest-dev/vitest/commit/697c35c5) - Allow inline workspace configuration  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6923 [(562e1)](/~https://github.com/vitest-dev/vitest/commit/562e1b14) - Provide the current project to the global setup  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6942 [(a5bbc)](/~https://github.com/vitest-dev/vitest/commit/a5bbc0a9) - Print project name as a label  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6925 [(a3bef)](/~https://github.com/vitest-dev/vitest/commit/a3bef598) - Print a deprecation warning if suite or test uses object as the third argument  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7031 [(407f1)](/~https://github.com/vitest-dev/vitest/commit/407f10e4) - Expose versions from `vitest/node` entry point and statically on Vitest  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7029 [(be8d4)](/~https://github.com/vitest-dev/vitest/commit/be8d479b) - `diff.printBasicPrototype: false` by default  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7043 [(2b5c5)](/~https://github.com/vitest-dev/vitest/commit/2b5c5201) - Prepare the Vitest API to be stable  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6962 [(9a1b5)](/~https://github.com/vitest-dev/vitest/commit/9a1b5012) - Support Vite v6 in mocker package  -  by [@cexbrayat](/~https://github.com/cexbrayat) in /~https://github.com/vitest-dev/vitest/issues/7058 [(96f47)](/~https://github.com/vitest-dev/vitest/commit/96f47d37) - Allow multi-browser configuration  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6975 [(78b62)](/~https://github.com/vitest-dev/vitest/commit/78b62ffe) - Add resolved project names to the reporter API  -  by [@userquin](/~https://github.com/userquin) in /~https://github.com/vitest-dev/vitest/issues/7213 [(91758)](/~https://github.com/vitest-dev/vitest/commit/91758360) - Introduce the new reporter API  -  by [@sheremet-va](/~https://github.com/sheremet-va) and [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7069 [(76662)](/~https://github.com/vitest-dev/vitest/commit/766624ab) - Add `describe.for`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7253 [(0ad28)](/~https://github.com/vitest-dev/vitest/commit/0ad2860b) - **api**: - Add onBrowserInit event  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7255 [(80ce0)](/~https://github.com/vitest-dev/vitest/commit/80ce0e1c) - **browser**: - Support `actionTimeout` as playwright provider options  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6984 [(e2c29)](/~https://github.com/vitest-dev/vitest/commit/e2c29eaf) - Support clipboard api `userEvent.copy, cut, paste`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6769 [(843a6)](/~https://github.com/vitest-dev/vitest/commit/843a621e) - Implement locator.nth()  -  by [@xeger](/~https://github.com/xeger) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7137 [(38458)](/~https://github.com/vitest-dev/vitest/commit/38458ea6) - **cli**: - Support excluding projects with `--project=!pattern`  -  by [@haines](/~https://github.com/haines) in /~https://github.com/vitest-dev/vitest/issues/6924 [(ebfe9)](/~https://github.com/vitest-dev/vitest/commit/ebfe942c) - Support specifying a line number when filtering tests  -  by [@mzhubail](/~https://github.com/mzhubail) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6411 [(4d94b)](/~https://github.com/vitest-dev/vitest/commit/4d94b956) - Support location filters for suites  -  by [@mzhubail](/~https://github.com/mzhubail) in /~https://github.com/vitest-dev/vitest/issues/7048 [(751e2)](/~https://github.com/vitest-dev/vitest/commit/751e2dce) - **coverage**: - `thresholds` to support maximum uncovered items  -  by [@jonahkagan](/~https://github.com/jonahkagan) in /~https://github.com/vitest-dev/vitest/issues/7061 [(bde98)](/~https://github.com/vitest-dev/vitest/commit/bde98b6d) - **expect**: - Add `toHaveBeenCalledExactlyOnceWith` expect matcher  -  by [@jacoberdman2147](/~https://github.com/jacoberdman2147) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6894 [(ff662)](/~https://github.com/vitest-dev/vitest/commit/ff66206a) - Add `toHaveBeenCalledAfter` and `toHaveBeenCalledBefore` utility  -  by [@Barbapapazes](/~https://github.com/Barbapapazes) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6056 [(85e6f)](/~https://github.com/vitest-dev/vitest/commit/85e6f99f) - Add `toSatisfy` asymmetric matcher  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7022 [(f691a)](/~https://github.com/vitest-dev/vitest/commit/f691ad76) - Add `toBeOneOf` matcher  -  by [@zirkelc](/~https://github.com/zirkelc) and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6974 [(3d742)](/~https://github.com/vitest-dev/vitest/commit/3d742b2b) - **reporter**: - Add support for function type to classname option in the junit reporter  -  by [@jpleclerc](/~https://github.com/jpleclerc), **Jean-Philippe Leclerc** and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6839 [(dc238)](/~https://github.com/vitest-dev/vitest/commit/dc238e92) - **reporters**: - `summary` option for `verbose` and `default` reporters  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6893 [(511b7)](/~https://github.com/vitest-dev/vitest/commit/511b73c7) - **runner**: - Test context can inject values from the config's `provide`  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6813 [(85c64)](/~https://github.com/vitest-dev/vitest/commit/85c64e35) - Add "queued" state  -  by [@sheremet-va](/~https://github.com/sheremet-va) and [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6931 [(5f8d2)](/~https://github.com/vitest-dev/vitest/commit/5f8d2091) - **snapshot**: - Provide `config` to `resolveSnapshotPath`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6800 [(746d8)](/~https://github.com/vitest-dev/vitest/commit/746d8986) - **ui**: - Allow run individual tests/suites from the UI  -  by [@userquin](/~https://github.com/userquin) in /~https://github.com/vitest-dev/vitest/issues/6641 [(d9cc8)](/~https://github.com/vitest-dev/vitest/commit/d9cc81dd) - Make clicking on a test in the UI open the report section and scroll to the test failure if applicable  -  by [@jacoberdman2147](/~https://github.com/jacoberdman2147) in /~https://github.com/vitest-dev/vitest/issues/6900 [(1bf27)](/~https://github.com/vitest-dev/vitest/commit/1bf27f0d) - Allow hide/show node_modules in module graph tab  -  by [@userquin](/~https://github.com/userquin) in /~https://github.com/vitest-dev/vitest/issues/7217 [(50cf6)](/~https://github.com/vitest-dev/vitest/commit/50cf61b8) - **vitest**: - Include `coverageMap` in json report  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6606 [(9c8f7)](/~https://github.com/vitest-dev/vitest/commit/9c8f7e3e) - Add `onTestsRerun` method to global setup context  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6803 [(e26e0)](/~https://github.com/vitest-dev/vitest/commit/e26e066c) #####    🐞 Bug Fixes - Misc fix for vite 6 ecosystem ci  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6867 [(80f8b)](/~https://github.com/vitest-dev/vitest/commit/80f8bbf4) - Respect `cacheDir` when optimizer is enabled  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6910 [(0b08b)](/~https://github.com/vitest-dev/vitest/commit/0b08bc11) - Reset runningPromise after `finally` in case there is an error to avoid it getting stuck  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6951 [(02194)](/~https://github.com/vitest-dev/vitest/commit/021944cd) - Revert support for Vite 6  -  by [@sheremet-va](/~https://github.com/sheremet-va) [(fbe5c)](/~https://github.com/vitest-dev/vitest/commit/fbe5c39d) - Support Node 21  -  by [@sheremet-va](/~https://github.com/sheremet-va) [(92f7a)](/~https://github.com/vitest-dev/vitest/commit/92f7a2ad) - Don't use `Custom` internally  -  by [@sheremet-va](/~https://github.com/sheremet-va) [(46fc5)](/~https://github.com/vitest-dev/vitest/commit/46fc5340) - Don't use `Custom` internally"  -  by [@sheremet-va](/~https://github.com/sheremet-va) [(db19f)](/~https://github.com/vitest-dev/vitest/commit/db19f6eb) - Don't use `Custom` type internally  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7032 [(7957f)](/~https://github.com/vitest-dev/vitest/commit/7957f912) - Persist cli filters as watch mode file filter  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6955 [(cc703)](/~https://github.com/vitest-dev/vitest/commit/cc703362) - Don't use dim color for succeeded tests  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7059 [(8a6f5)](/~https://github.com/vitest-dev/vitest/commit/8a6f5f16) - Fix missing chai types  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7149 [(6a09c)](/~https://github.com/vitest-dev/vitest/commit/6a09cc3b) - `cancelCurrentRun` awaits `runningPromise`  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7168 [(1dbf5)](/~https://github.com/vitest-dev/vitest/commit/1dbf5140) - Add Locator typings for nth, first and last.  -  by [@xeger](/~https://github.com/xeger) in /~https://github.com/vitest-dev/vitest/issues/7176 [(d262e)](/~https://github.com/vitest-dev/vitest/commit/d262e059) - Batch console logs by microtask  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7183 [(53d1d)](/~https://github.com/vitest-dev/vitest/commit/53d1d5f5) - Allow `getMockImplementation` to return "once" implementation  -  by [@chaptergy](/~https://github.com/chaptergy) in /~https://github.com/vitest-dev/vitest/issues/7033 [(39125)](/~https://github.com/vitest-dev/vitest/commit/3912554b) - `capturePrintError` logger duplicate event handlers  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7197 [(e89c3)](/~https://github.com/vitest-dev/vitest/commit/e89c3693) - Allow slots in vitest-browser-vue  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7120 [(2319f)](/~https://github.com/vitest-dev/vitest/commit/2319f849) - Reset root workspace project on restart  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7238 [(6e518)](/~https://github.com/vitest-dev/vitest/commit/6e51843a) - Cleanup `vitest/reporters` entrypoint  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7241 [(aec0b)](/~https://github.com/vitest-dev/vitest/commit/aec0b530) - Colors on `forks` pool  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7090 [(8cab9)](/~https://github.com/vitest-dev/vitest/commit/8cab9601) - Export `VitestRunner` type from `vitest/runners`  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7240 [(9b218)](/~https://github.com/vitest-dev/vitest/commit/9b218854) - Return test fn result to runner  -  by [@wmertens](/~https://github.com/wmertens) in /~https://github.com/vitest-dev/vitest/issues/7239 [(48645)](/~https://github.com/vitest-dev/vitest/commit/48645bf4) - Re-apply default conditions if using vite 6 or later  -  by [@thebanjomatic](/~https://github.com/thebanjomatic), **thebanjomatic** and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7071 [(84287)](/~https://github.com/vitest-dev/vitest/commit/84287fc2) - Prevent infinite loop on prettyDOM calls  -  by [@tsirlucas](/~https://github.com/tsirlucas) in /~https://github.com/vitest-dev/vitest/issues/7250 [(a3a46)](/~https://github.com/vitest-dev/vitest/commit/a3a46a53) - **api**: - Don't report events during `vitest list`  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7257 [(1c2b2)](/~https://github.com/vitest-dev/vitest/commit/1c2b210d) - **benchmark**: - Disable type testing while benchmarking  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7068 [(4e603)](/~https://github.com/vitest-dev/vitest/commit/4e60333d) - Rewrite reporter without `log-update`  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7019 [(6d23f)](/~https://github.com/vitest-dev/vitest/commit/6d23f4b1) - **browser**: - Improve source maps when `vi.mock` is present  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6810 [(8d179)](/~https://github.com/vitest-dev/vitest/commit/8d179afc) - Explain TypeScript support in docs and add asymmetric matchers to types  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/6934 [(ac1a7)](/~https://github.com/vitest-dev/vitest/commit/ac1a7fdc) - Fix matchers.d.ts  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6995 [(a485b)](/~https://github.com/vitest-dev/vitest/commit/a485b32b) - Fix user event state on preview provider  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7041 [(8e944)](/~https://github.com/vitest-dev/vitest/commit/8e94427e) - Fix provider options types  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7115 [(579bd)](/~https://github.com/vitest-dev/vitest/commit/579bda97) - Only use locator.element on last expect.element attempt  -  by [@tsirlucas](/~https://github.com/tsirlucas) in /~https://github.com/vitest-dev/vitest/issues/7139 and /~https://github.com/vitest-dev/vitest/issues/7152 [(847d3)](/~https://github.com/vitest-dev/vitest/commit/847d3221) - Use correct project when filtering `entries` in the browser mode  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7167 [(423d6)](/~https://github.com/vitest-dev/vitest/commit/423d6345) - Fix `console.time` with fake timers  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7207 [(903f3)](/~https://github.com/vitest-dev/vitest/commit/903f3b9b) - Add instance validation to resolve coverage error  -  by [@DevJoaoLopes](/~https://github.com/DevJoaoLopes) and [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7231 [(1e791)](/~https://github.com/vitest-dev/vitest/commit/1e7915b5) - **coverage**: - Exclude browser mode iframe results  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6905 [(e04a1)](/~https://github.com/vitest-dev/vitest/commit/e04a1368) - Correct coverage when `isolate: false` is used  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6957 [(426ce)](/~https://github.com/vitest-dev/vitest/commit/426ce6d8) - Prevent crash when v8 incorrectly merges static_initializer's  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7150 [(cb6db)](/~https://github.com/vitest-dev/vitest/commit/cb6db13e) - **deps**: - Update all non-major dependencies  -  in /~https://github.com/vitest-dev/vitest/issues/7085 [(8cc92)](/~https://github.com/vitest-dev/vitest/commit/8cc92c2f) - Update all non-major dependencies  -  in /~https://github.com/vitest-dev/vitest/issues/7116 [(de5ce)](/~https://github.com/vitest-dev/vitest/commit/de5ce3d9) - Update dependency pathe to v2  -  in /~https://github.com/vitest-dev/vitest/issues/7181 [(74dbe)](/~https://github.com/vitest-dev/vitest/commit/74dbe03f) - **diff**: - Truncate to avoid crash on diff large objects  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7133 [(2a9d6)](/~https://github.com/vitest-dev/vitest/commit/2a9d67a2) - **junit**: - Fix testsuites time to be sum of all testsuite items  -  by [@saitonakamura](/~https://github.com/saitonakamura) in /~https://github.com/vitest-dev/vitest/issues/6985 [(ca37a)](/~https://github.com/vitest-dev/vitest/commit/ca37a06a) - **pretty-format**: - Support react 19  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6909 [(bd29b)](/~https://github.com/vitest-dev/vitest/commit/bd29bcc7) - **reporters**: - Write buffered stdout/stderr on process exit  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6932 [(80cde)](/~https://github.com/vitest-dev/vitest/commit/80cde2a0) - Rewrite `dot` reporter without `log-update`  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6943 [(be969)](/~https://github.com/vitest-dev/vitest/commit/be969cfb) - Check `--hideSkippedTests` in base reporter  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/6988 [(721a5)](/~https://github.com/vitest-dev/vitest/commit/721a5b84) - Show `retry` and `repeats` counts  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) and [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7004 [(3496a)](/~https://github.com/vitest-dev/vitest/commit/3496a015) - **runner**: - Long synchronous tasks does not time out  -  by [@ferdodo](/~https://github.com/ferdodo) and [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/2920 and /~https://github.com/vitest-dev/vitest/issues/6944 [(2fb58)](/~https://github.com/vitest-dev/vitest/commit/2fb585ae) - Mark tests of `describe.todo` as `'todo'`  -  by [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7171 [(1d458)](/~https://github.com/vitest-dev/vitest/commit/1d458955) - **snapshot**: - Fix "obsolete" message on snapshot update re-run  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7129 [(c2beb)](/~https://github.com/vitest-dev/vitest/commit/c2beb8ca) - Preserve white space of `toMatchFileSnapshot`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7156 [(a437b)](/~https://github.com/vitest-dev/vitest/commit/a437b656) - Fix obsoleteness check of `toMatchSnapshot("...")`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7126 [(ac9ba)](/~https://github.com/vitest-dev/vitest/commit/ac9ba151) - **typecheck**: - Fix typecheck collect on Vite 6  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6972 [(7b35d)](/~https://github.com/vitest-dev/vitest/commit/7b35d13a) - Use unique temp and tsbuildinfo file for each tsconfig file  -  by [@masnormen](/~https://github.com/masnormen) in /~https://github.com/vitest-dev/vitest/issues/7107 and /~https://github.com/vitest-dev/vitest/issues/7112 [(61b30)](/~https://github.com/vitest-dev/vitest/commit/61b30162) - Fix error test case mapping for `@ts-expect-error`  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7125 [(27d34)](/~https://github.com/vitest-dev/vitest/commit/27d340aa) - **types**: - Make parameters non-nullable for Playwright options  -  by [@apple-yagi](/~https://github.com/apple-yagi) in /~https://github.com/vitest-dev/vitest/issues/6989 [(fe2a1)](/~https://github.com/vitest-dev/vitest/commit/fe2a187f) - **ui**: - Wrong module graph when generating html.meta.json.gz in browser mode  -  by [@userquin](/~https://github.com/userquin) in /~https://github.com/vitest-dev/vitest/issues/7214 [(dccdd)](/~https://github.com/vitest-dev/vitest/commit/dccdd550) - Add errors and draft state (\*) to the code editor  -  by [@userquin](/~https://github.com/userquin) in /~https://github.com/vitest-dev/vitest/issues/7044 [(faca4)](/~https://github.com/vitest-dev/vitest/commit/faca4de8) - **vite-node**: - Fix error stack on Windows  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/6786 [(bf7b3)](/~https://github.com/vitest-dev/vitest/commit/bf7b36ac) - Properly normalize file url import  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7087 [(31675)](/~https://github.com/vitest-dev/vitest/commit/31675e3b) - Fix mandatory node prefix  -  by [@hi-ogawa](/~https://github.com/hi-ogawa) in /~https://github.com/vitest-dev/vitest/issues/7179 [(b6284)](/~https://github.com/vitest-dev/vitest/commit/b6284642) - **watch**: - Don't indicate exit when no matching files  -  by [@sheremet-va](/~https://github.com/sheremet-va) and [@AriPerkkio](/~https://github.com/AriPerkkio) in /~https://github.com/vitest-dev/vitest/issues/7246 [(003c0)](/~https://github.com/vitest-dev/vitest/commit/003c0bef) - **workspace**: - `extends: true` correctly inherits all root config properties  -  by [@sheremet-va](/~https://github.com/sheremet-va) in /~https://github.com/vitest-dev/vitest/issues/7232 [(798c0)](/~https://github.com/vitest-dev/vitest/commit/798c0da2) #####     [View changes on GitHub](/~https://github.com/vitest-dev/vitest/compare/v2.1.8...v3.0.0) --- package.json | 2 +- pnpm-lock.yaml | 150 ++++++++++++++++++++++++------------------------- 2 files changed, 76 insertions(+), 76 deletions(-) diff --git a/package.json b/package.json index 961d5e56..c37615a5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "pkg-pr-new": "^0.0.39", "tsx": "^4.7.1", "typescript": "5.7.3", - "vitest": "^2.0.0" + "vitest": "^3.0.0" }, "dependencies": { "@eslint/js": "^9.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f5da6508..25111960 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,7 +79,7 @@ importers: version: 56.0.1(eslint@8.57.1) eslint-plugin-vitest: specifier: ^0.5.0 - version: 0.5.4(@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3)(vitest@2.1.8(@types/node@22.10.7)) + version: 0.5.4(@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3)(vitest@3.0.0(@types/node@22.10.7)) eslint-plugin-wrapper: specifier: 0.1.0-1 version: 0.1.0-1 @@ -124,8 +124,8 @@ importers: specifier: 5.7.3 version: 5.7.3 vitest: - specifier: ^2.0.0 - version: 2.1.8(@types/node@22.10.7) + specifier: ^3.0.0 + version: 3.0.0(@types/node@22.10.7) packages: @@ -1340,34 +1340,34 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - '@vitest/expect@2.1.8': - resolution: {integrity: sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==} + '@vitest/expect@3.0.0': + resolution: {integrity: sha512-Qx+cHyB59mWrQywT3/dZIIpSKwIpWbYFdBX2zixMYpOGZmbaP2jbbd4i/TAKJq/jBgSfww++d6YnrlGMFb2XBg==} - '@vitest/mocker@2.1.8': - resolution: {integrity: sha512-7guJ/47I6uqfttp33mgo6ga5Gr1VnL58rcqYKyShoRK9ebu8T5Rs6HN3s1NABiBeVTdWNrwUMcHH54uXZBN4zA==} + '@vitest/mocker@3.0.0': + resolution: {integrity: sha512-8ytqYjIRzAM90O7n8A0TCbziTnouIG+UGuMHmoRJpKh4vvah4uENw5UAMMNjdKCtzgMiTrZ9XU+xzwCwcxuxGQ==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 + vite: ^5.0.0 || ^6.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true - '@vitest/pretty-format@2.1.8': - resolution: {integrity: sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==} + '@vitest/pretty-format@3.0.0': + resolution: {integrity: sha512-24y+MS04ZHZbbbfAvfpi9hM2oULePbiL6Dir8r1nFMN97hxuL0gEXKWRGmlLPwzKDtaOKNjtyTx0+GiZcWCxDA==} - '@vitest/runner@2.1.8': - resolution: {integrity: sha512-17ub8vQstRnRlIU5k50bG+QOMLHRhYPAna5tw8tYbj+jzjcspnwnwtPtiOlkuKC4+ixDPTuLZiqiWWQ2PSXHVg==} + '@vitest/runner@3.0.0': + resolution: {integrity: sha512-6MCYobtatsgG3DlM+dk6njP+R+28iSUqWbJzXp/nuOy6SkAKzJ1wby3fDgimmy50TeK8g6y+E6rP12REyinYPw==} - '@vitest/snapshot@2.1.8': - resolution: {integrity: sha512-20T7xRFbmnkfcmgVEz+z3AU/3b0cEzZOt/zmnvZEctg64/QZbSDJEVm9fLnnlSi74KibmRsO9/Qabi+t0vCRPg==} + '@vitest/snapshot@3.0.0': + resolution: {integrity: sha512-W0X6fJFJ3RbSThncSYUNSnXkMJFyXX9sOvxP1HSQRsWCLB1U3JnZc0SrLpLzcyByMUDXHsiXQ+x+xsr/G5fXNw==} - '@vitest/spy@2.1.8': - resolution: {integrity: sha512-5swjf2q95gXeYPevtW0BLk6H8+bPlMb4Vw/9Em4hFxDcaOxS+e0LOX4yqNxoHzMR2akEB2xfpnWUzkZokmgWDg==} + '@vitest/spy@3.0.0': + resolution: {integrity: sha512-pfK5O3lRqeCG8mbV+Lr8lLUBicFRm5TlggF7bLZpzpo111LKhMN/tZRXvyOGOgbktxAR9bTf4x8U6RtHuFBTVA==} - '@vitest/utils@2.1.8': - resolution: {integrity: sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==} + '@vitest/utils@3.0.0': + resolution: {integrity: sha512-l300v2/4diHyv5ZiQOj6y/H6VbaTWM6i1c2lC3lUZ5nn9rv9C+WneS/wqyaGLwM37reoh/QkrrYMSMKdfnDZpw==} acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} @@ -2977,8 +2977,8 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - magic-string@0.30.14: - resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==} + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} @@ -3817,8 +3817,8 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@0.3.1: - resolution: {integrity: sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==} + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} tinyglobby@0.2.10: resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==} @@ -3828,8 +3828,8 @@ packages: resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} engines: {node: ^18.0.0 || >=20.0.0} - tinyrainbow@1.2.0: - resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} engines: {node: '>=14.0.0'} tinyspy@3.0.2: @@ -4014,9 +4014,9 @@ packages: resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - vite-node@2.1.8: - resolution: {integrity: sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==} - engines: {node: ^18.0.0 || >=20.0.0} + vite-node@3.0.0: + resolution: {integrity: sha512-V5p05fpAzkHM3aYChsHWV1RTeLAhPejbKX6MqiWWyuIfNcDgXq5p0GnYV6Wa4OAU588XC70XCJB9chRZsOh4yg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true vite@5.4.11: @@ -4050,15 +4050,15 @@ packages: terser: optional: true - vitest@2.1.8: - resolution: {integrity: sha512-1vBKTZskHw/aosXqQUlVWWlGUxSJR8YtiyZDJAFeW2kPAeX6S3Sool0mjspO+kXLuxVWlEDDowBAeqeAQefqLQ==} - engines: {node: ^18.0.0 || >=20.0.0} + vitest@3.0.0: + resolution: {integrity: sha512-fwfPif+EV0jyms9h1Crb6rwJttH/KBzKrcUesjxHgldmc6R0FaMNLsd+Rgc17NoxzLcb/sYE2Xs9NQ/vnTBf6Q==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.1.8 - '@vitest/ui': 2.1.8 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.0.0 + '@vitest/ui': 3.0.0 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -5354,45 +5354,45 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitest/expect@2.1.8': + '@vitest/expect@3.0.0': dependencies: - '@vitest/spy': 2.1.8 - '@vitest/utils': 2.1.8 + '@vitest/spy': 3.0.0 + '@vitest/utils': 3.0.0 chai: 5.1.2 - tinyrainbow: 1.2.0 + tinyrainbow: 2.0.0 - '@vitest/mocker@2.1.8(vite@5.4.11(@types/node@22.10.7))': + '@vitest/mocker@3.0.0(vite@5.4.11(@types/node@22.10.7))': dependencies: - '@vitest/spy': 2.1.8 + '@vitest/spy': 3.0.0 estree-walker: 3.0.3 - magic-string: 0.30.14 + magic-string: 0.30.17 optionalDependencies: vite: 5.4.11(@types/node@22.10.7) - '@vitest/pretty-format@2.1.8': + '@vitest/pretty-format@3.0.0': dependencies: - tinyrainbow: 1.2.0 + tinyrainbow: 2.0.0 - '@vitest/runner@2.1.8': + '@vitest/runner@3.0.0': dependencies: - '@vitest/utils': 2.1.8 - pathe: 1.1.2 + '@vitest/utils': 3.0.0 + pathe: 2.0.1 - '@vitest/snapshot@2.1.8': + '@vitest/snapshot@3.0.0': dependencies: - '@vitest/pretty-format': 2.1.8 - magic-string: 0.30.14 - pathe: 1.1.2 + '@vitest/pretty-format': 3.0.0 + magic-string: 0.30.17 + pathe: 2.0.1 - '@vitest/spy@2.1.8': + '@vitest/spy@3.0.0': dependencies: tinyspy: 3.0.2 - '@vitest/utils@2.1.8': + '@vitest/utils@3.0.0': dependencies: - '@vitest/pretty-format': 2.1.8 + '@vitest/pretty-format': 3.0.0 loupe: 3.1.2 - tinyrainbow: 1.2.0 + tinyrainbow: 2.0.0 acorn-jsx@5.3.2(acorn@8.12.1): dependencies: @@ -6331,13 +6331,13 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3)(vitest@2.1.8(@types/node@22.10.7)): + eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3)(vitest@3.0.0(@types/node@22.10.7)): dependencies: '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.7.3) eslint: 8.57.1 optionalDependencies: '@typescript-eslint/eslint-plugin': 8.20.0(@typescript-eslint/parser@8.20.0(eslint@8.57.1)(typescript@5.7.3))(eslint@8.57.1)(typescript@5.7.3) - vitest: 2.1.8(@types/node@22.10.7) + vitest: 3.0.0(@types/node@22.10.7) transitivePeerDependencies: - supports-color - typescript @@ -7285,7 +7285,7 @@ snapshots: dependencies: yallist: 3.1.1 - magic-string@0.30.14: + magic-string@0.30.17: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -8224,7 +8224,7 @@ snapshots: tinybench@2.9.0: {} - tinyexec@0.3.1: {} + tinyexec@0.3.2: {} tinyglobby@0.2.10: dependencies: @@ -8233,7 +8233,7 @@ snapshots: tinypool@1.0.2: {} - tinyrainbow@1.2.0: {} + tinyrainbow@2.0.0: {} tinyspy@3.0.2: {} @@ -8412,12 +8412,12 @@ snapshots: validate-npm-package-name@5.0.1: {} - vite-node@2.1.8(@types/node@22.10.7): + vite-node@3.0.0(@types/node@22.10.7): dependencies: cac: 6.7.14 - debug: 4.3.7 + debug: 4.4.0 es-module-lexer: 1.5.4 - pathe: 1.1.2 + pathe: 2.0.1 vite: 5.4.11(@types/node@22.10.7) transitivePeerDependencies: - '@types/node' @@ -8439,27 +8439,27 @@ snapshots: '@types/node': 22.10.7 fsevents: 2.3.3 - vitest@2.1.8(@types/node@22.10.7): + vitest@3.0.0(@types/node@22.10.7): dependencies: - '@vitest/expect': 2.1.8 - '@vitest/mocker': 2.1.8(vite@5.4.11(@types/node@22.10.7)) - '@vitest/pretty-format': 2.1.8 - '@vitest/runner': 2.1.8 - '@vitest/snapshot': 2.1.8 - '@vitest/spy': 2.1.8 - '@vitest/utils': 2.1.8 + '@vitest/expect': 3.0.0 + '@vitest/mocker': 3.0.0(vite@5.4.11(@types/node@22.10.7)) + '@vitest/pretty-format': 3.0.0 + '@vitest/runner': 3.0.0 + '@vitest/snapshot': 3.0.0 + '@vitest/spy': 3.0.0 + '@vitest/utils': 3.0.0 chai: 5.1.2 - debug: 4.3.7 + debug: 4.4.0 expect-type: 1.1.0 - magic-string: 0.30.14 - pathe: 1.1.2 + magic-string: 0.30.17 + pathe: 2.0.1 std-env: 3.8.0 tinybench: 2.9.0 - tinyexec: 0.3.1 + tinyexec: 0.3.2 tinypool: 1.0.2 - tinyrainbow: 1.2.0 + tinyrainbow: 2.0.0 vite: 5.4.11(@types/node@22.10.7) - vite-node: 2.1.8(@types/node@22.10.7) + vite-node: 3.0.0(@types/node@22.10.7) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.10.7