-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: check error type before modifying it #3385
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run & review this pull request in StackBlitz Codeflow. |
renovate bot
referenced
this pull request
in ariakit/ariakit
May 17, 2023
[![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/coverage-c8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-c8#readme) ([source](https://togithub.com/vitest-dev/vitest)) | [`0.31.0` -> `0.31.1`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.31.0/0.31.1) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.1/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.31.1/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.31.0` -> `0.31.1`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.31.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/ariakit/ariakit). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS44OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuODkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fwouts
referenced
this pull request
in fwouts/previewjs
May 23, 2023
[![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.31.0` -> `^0.31.1`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.31.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS44OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuODkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in Unleash/unleash
May 25, 2023
[![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.31.0` -> `0.31.1`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.31.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC40IiwidXBkYXRlZEluVmVyIjoiMzUuOTguNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
christianemmert
referenced
this pull request
in christianemmert/ts-starter
May 29, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/eslint](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`8.21.1` -> `8.40.0`](https://renovatebot.com/diffs/npm/@types%2feslint/8.21.1/8.40.0) | [![age](https://badges.renovateapi.com/packages/npm/@types%2feslint/8.40.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2feslint/8.40.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2feslint/8.40.0/compatibility-slim/8.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2feslint/8.40.0/confidence-slim/8.21.1)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.14.6` -> `18.16.16`](https://renovatebot.com/diffs/npm/@types%2fnode/18.14.6/18.16.16) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.16/compatibility-slim/18.14.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.16/confidence-slim/18.14.6)](https://docs.renovatebot.com/merge-confidence/) | | [eslint](https://eslint.org) ([source](https://togithub.com/eslint/eslint)) | [`8.35.0` -> `8.41.0`](https://renovatebot.com/diffs/npm/eslint/8.35.0/8.41.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint/8.41.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.41.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint/8.41.0/compatibility-slim/8.35.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.41.0/confidence-slim/8.35.0)](https://docs.renovatebot.com/merge-confidence/) | | [pnpm](https://pnpm.io) ([source](https://togithub.com/pnpm/pnpm)) | [`8.5.1` -> `8.6.0`](https://renovatebot.com/diffs/npm/pnpm/8.5.1/8.6.0) | [![age](https://badges.renovateapi.com/packages/npm/pnpm/8.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/pnpm/8.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/pnpm/8.6.0/compatibility-slim/8.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/pnpm/8.6.0/confidence-slim/8.5.1)](https://docs.renovatebot.com/merge-confidence/) | | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`2.8.4` -> `2.8.8`](https://renovatebot.com/diffs/npm/prettier/2.8.4/2.8.8) | [![age](https://badges.renovateapi.com/packages/npm/prettier/2.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/prettier/2.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/prettier/2.8.8/compatibility-slim/2.8.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/prettier/2.8.8/confidence-slim/2.8.4)](https://docs.renovatebot.com/merge-confidence/) | | [typescript](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/TypeScript)) | [`5.0.2` -> `5.0.4`](https://renovatebot.com/diffs/npm/typescript/5.0.2/5.0.4) | [![age](https://badges.renovateapi.com/packages/npm/typescript/5.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/typescript/5.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/typescript/5.0.4/compatibility-slim/5.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/typescript/5.0.4/confidence-slim/5.0.2)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.31.0` -> `0.31.1`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.31.1) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.1/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>eslint/eslint</summary> ### [`v8.41.0`](https://togithub.com/eslint/eslint/releases/tag/v8.41.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.40.0...v8.41.0) #### Features - [`880a431`](https://togithub.com/eslint/eslint/commit/880a4317b949e575a4a6c5e8baaba1eea7674cc6) feat: change default ignore pattern to `**/node_modules/` in flat config ([#​17184](https://togithub.com/eslint/eslint/issues/17184)) (Milos Djermanovic) - [`8bf5505`](https://togithub.com/eslint/eslint/commit/8bf550594fca6d29fab1a3453e701c1a457767e1) feat: expose `shouldUseFlatConfig` ([#​17169](https://togithub.com/eslint/eslint/issues/17169)) (Connor Prussin) #### Bug Fixes - [`4f5440d`](https://togithub.com/eslint/eslint/commit/4f5440db631707b17140c4e5cc7beb223afbd2b9) fix: incorrect warning message for ignored dotfiles ([#​17196](https://togithub.com/eslint/eslint/issues/17196)) (Milos Djermanovic) - [`94da96c`](https://togithub.com/eslint/eslint/commit/94da96cbf0fb2bb6694fa2e757eb1b3e74c40db7) fix: unify `LintMessage` type ([#​17076](https://togithub.com/eslint/eslint/issues/17076)) (Brandon Mills) - [`0c415cd`](https://togithub.com/eslint/eslint/commit/0c415cda5d76dbe5120ab9f3c4c81320538e35f0) fix: validate `ignorePatterns` constructor option in `FlatESLint` class ([#​17139](https://togithub.com/eslint/eslint/issues/17139)) (Milos Djermanovic) - [`9682d66`](https://togithub.com/eslint/eslint/commit/9682d669e4ee8641293914e21679f40fee8bc354) fix: switch `grapheme-splitter` to `graphemer` ([#​17160](https://togithub.com/eslint/eslint/issues/17160)) (fisker Cheung) #### Documentation - [`7709b14`](https://togithub.com/eslint/eslint/commit/7709b14e18ad4e11c1119ed6575454243b8e7084) docs: Update README (GitHub Actions Bot) - [`7f183e0`](https://togithub.com/eslint/eslint/commit/7f183e020579380fa57473caaf9ed154470c25b3) docs: Update triage process description ([#​17157](https://togithub.com/eslint/eslint/issues/17157)) (Nicholas C. Zakas) - [`b68346b`](https://togithub.com/eslint/eslint/commit/b68346b290d55324e73868ca42b3854157b27375) docs: fix license to reflect relicensing of jshint ([#​17165](https://togithub.com/eslint/eslint/issues/17165)) (Stefan Bischof) #### Chores - [`f43216a`](https://togithub.com/eslint/eslint/commit/f43216a8c77ab6cf1d0823978e8c728786b4cba7) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).41.0 ([#​17200](https://togithub.com/eslint/eslint/issues/17200)) (Milos Djermanovic) - [`95c3007`](https://togithub.com/eslint/eslint/commit/95c300780a1cfd9ad680bc78850542eb55d7fbf4) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`ddc5291`](https://togithub.com/eslint/eslint/commit/ddc5291debd90ff476e17c532af7577e26720b91) chore: don't use deprecated `context` methods in `ast-utils` tests ([#​17194](https://togithub.com/eslint/eslint/issues/17194)) (Milos Djermanovic) - [`b1516db`](https://togithub.com/eslint/eslint/commit/b1516db51514032ed06e1425c4b1f955238dc682) chore: Fix return type of `findFlatConfigFile` ([#​17161](https://togithub.com/eslint/eslint/issues/17161)) (Milos Djermanovic) - [`918b0fd`](https://togithub.com/eslint/eslint/commit/918b0fd21723e84bd7acb17942a36606f1d8360a) perf: Store indent descriptors in a plain array ([#​17148](https://togithub.com/eslint/eslint/issues/17148)) (Francesco Trotta) - [`4caa344`](https://togithub.com/eslint/eslint/commit/4caa34449555d8a680222ec2049d97c59476c11e) refactor: locateConfigFileToUse returns an Error object ([#​17159](https://togithub.com/eslint/eslint/issues/17159)) (唯然) ### [`v8.40.0`](https://togithub.com/eslint/eslint/releases/tag/v8.40.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.39.0...v8.40.0) #### Features - [`5db7808`](https://togithub.com/eslint/eslint/commit/5db7808139c1f2172797285a0700f01644bda254) feat: improve flat config errors for invalid rule options and severities ([#​17140](https://togithub.com/eslint/eslint/issues/17140)) (Josh Goldberg ✨) - [`f5574dc`](https://togithub.com/eslint/eslint/commit/f5574dc739fcc74a7841217ba1f31cce02bee1ff) feat: Add findConfigFile() method to FlatESLint ([#​17142](https://togithub.com/eslint/eslint/issues/17142)) (Nicholas C. Zakas) - [`e52b98b`](https://togithub.com/eslint/eslint/commit/e52b98bf25d882da4efd5559ce5974b6697cf701) feat: add `sourceCode` property to the rule context ([#​17107](https://togithub.com/eslint/eslint/issues/17107)) (Nitin Kumar) - [`1468f5b`](https://togithub.com/eslint/eslint/commit/1468f5b640cfa6fdd8a5ec895337f692def2780b) feat: add `physicalFilename` property to the rule context ([#​17111](https://togithub.com/eslint/eslint/issues/17111)) (Nitin Kumar) - [`0df4d4f`](https://togithub.com/eslint/eslint/commit/0df4d4f658c214e51310a986c03d44d34ceae3ec) feat: add `cwd` to rule context ([#​17106](https://togithub.com/eslint/eslint/issues/17106)) (Nitin Kumar) - [`52018f2`](https://togithub.com/eslint/eslint/commit/52018f21c19b3e461cae32843cddd17ed42f19cd) feat: add `filename` property to the rule context ([#​17108](https://togithub.com/eslint/eslint/issues/17108)) (Nitin Kumar) - [`559ff4e`](https://togithub.com/eslint/eslint/commit/559ff4e4bc54a8b6e6b54825d83c532d724204b3) feat: add new `omitLastInOneLineClassBody` option to the `semi` rule ([#​17105](https://togithub.com/eslint/eslint/issues/17105)) (Nitin Kumar) #### Bug Fixes - [`f076e54`](https://togithub.com/eslint/eslint/commit/f076e54ecdb0fae70d9b43ad6888606097beef97) fix: Ensure FlatESLint#findConfigFile() doesn't throw. ([#​17151](https://togithub.com/eslint/eslint/issues/17151)) (Nicholas C. Zakas) #### Documentation - [`e980bf3`](https://togithub.com/eslint/eslint/commit/e980bf38cf441f2eb29c458b93df77dc0111b391) docs: Update README (GitHub Actions Bot) - [`e92a6fc`](https://togithub.com/eslint/eslint/commit/e92a6fc7ed2a427f5e95f4b3a1c21d71553c97ee) docs: Update README (GitHub Actions Bot) - [`af5fe64`](https://togithub.com/eslint/eslint/commit/af5fe64c398c9bd4206c3c6c1ade81768b291031) docs: Fix custom rule schema docs ([#​17115](https://togithub.com/eslint/eslint/issues/17115)) (Adam Jones) - [`4a352a9`](https://togithub.com/eslint/eslint/commit/4a352a957ba9e721bec9f6f403b419a22b0ec423) docs: explain how to include predefined globals ([#​17114](https://togithub.com/eslint/eslint/issues/17114)) (Marcus Wyatt) - [`5ea15d9`](https://togithub.com/eslint/eslint/commit/5ea15d92ee358e8f3f652c94c019cac96aaec651) docs: add mastodon link in readme ([#​17110](https://togithub.com/eslint/eslint/issues/17110)) (唯然) #### Chores - [`4053004`](https://togithub.com/eslint/eslint/commit/4053004c951813473d1c43f9f9959a9a3484242f) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).40.0 ([#​17156](https://togithub.com/eslint/eslint/issues/17156)) (Milos Djermanovic) - [`50fed1d`](https://togithub.com/eslint/eslint/commit/50fed1da4449ad7ecbb558294438273cfce603d4) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`4c7a170`](https://togithub.com/eslint/eslint/commit/4c7a170b04c5a746e401bef7ce79766ff66a1168) chore: upgrade [@​eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@​2](https://togithub.com/2).0.3 ([#​17155](https://togithub.com/eslint/eslint/issues/17155)) (Milos Djermanovic) - [`e80b7cc`](https://togithub.com/eslint/eslint/commit/e80b7cce640b60c00802148dbb51d03c7223afa9) chore: upgrade espree@9.5.2 ([#​17154](https://togithub.com/eslint/eslint/issues/17154)) (Milos Djermanovic) - [`ce3ac91`](https://togithub.com/eslint/eslint/commit/ce3ac91b510576e2afba1657aa5f09e162b4ab07) chore: upgrade eslint-visitor-keys@3.4.1 ([#​17153](https://togithub.com/eslint/eslint/issues/17153)) (Milos Djermanovic) - [`9094d79`](https://togithub.com/eslint/eslint/commit/9094d79fb42c0ebb6100426a3f2f851e8d42a0ee) chore: add `latest/` to `meta.docs.url` in all core rules ([#​17136](https://togithub.com/eslint/eslint/issues/17136)) (Milos Djermanovic) - [`d85efad`](https://togithub.com/eslint/eslint/commit/d85efad655deacc0dc3fdbbace33307094c3b91b) perf: don't use `grapheme-splitter` on ASCII strings in key-spacing rule ([#​17122](https://togithub.com/eslint/eslint/issues/17122)) (Milos Djermanovic) ### [`v8.39.0`](https://togithub.com/eslint/eslint/releases/tag/v8.39.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.38.0...v8.39.0) #### Features - [`3f7af9f`](https://togithub.com/eslint/eslint/commit/3f7af9f408625dbc486af914706d34c4b483b5ba) feat: Implement `SourceCode#markVariableAsUsed()` ([#​17086](https://togithub.com/eslint/eslint/issues/17086)) (Nicholas C. Zakas) #### Documentation - [`6987dc5`](https://togithub.com/eslint/eslint/commit/6987dc59e46f4e345d0d6c20c1f2c6846bbd7acc) docs: Fix formatting in Custom Rules docs ([#​17097](https://togithub.com/eslint/eslint/issues/17097)) (Milos Djermanovic) - [`4ee92e5`](https://togithub.com/eslint/eslint/commit/4ee92e5cbdeba6fea2147901ce926de16946958a) docs: Update README (GitHub Actions Bot) - [`d8e9887`](https://togithub.com/eslint/eslint/commit/d8e9887c2c384d24d586d08ee9ae2ada79bd234c) docs: Custom Rules cleanup/expansion ([#​16906](https://togithub.com/eslint/eslint/issues/16906)) (Ben Perlmutter) - [`1fea279`](https://togithub.com/eslint/eslint/commit/1fea2797801a82a2718814c83dad641dab092bcc) docs: Clarify how to add to tsc agenda ([#​17084](https://togithub.com/eslint/eslint/issues/17084)) (Nicholas C. Zakas) - [`970ef1c`](https://togithub.com/eslint/eslint/commit/970ef1c868235a58297682513842f1256cdfbd03) docs: Update triage board location (Nicholas C. Zakas) - [`6d8bffd`](https://togithub.com/eslint/eslint/commit/6d8bffdf45d50e272dc45e6d2d05b4a737514468) docs: Update README (GitHub Actions Bot) #### Chores - [`60a6f26`](https://togithub.com/eslint/eslint/commit/60a6f2694deb4aa1c54de2a28d0357cddfd16644) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).39.0 ([#​17102](https://togithub.com/eslint/eslint/issues/17102)) (Milos Djermanovic) - [`d5ba5c0`](https://togithub.com/eslint/eslint/commit/d5ba5c0a85e7a10777761f5d46c104ab7f25845b) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`f57eff2`](https://togithub.com/eslint/eslint/commit/f57eff20f5789408e95061f1af5354bb9b4f4784) ci: run tests on Node.js v20 ([#​17093](https://togithub.com/eslint/eslint/issues/17093)) (Nitin Kumar) - [`9d1b8fc`](https://togithub.com/eslint/eslint/commit/9d1b8fc60cc31f12618e58c10a2669506b7ce9bf) perf: Binary search in token store `utils.search` ([#​17066](https://togithub.com/eslint/eslint/issues/17066)) (Francesco Trotta) - [`07a4435`](https://togithub.com/eslint/eslint/commit/07a4435a0c08cb63ebf11b71f735bac20318829b) chore: Add request for minimal repro to bug report ([#​17081](https://togithub.com/eslint/eslint/issues/17081)) (Nicholas C. Zakas) - [`eac4943`](https://togithub.com/eslint/eslint/commit/eac4943ba2e4edb3dbfea0470e5d4b15a4926c40) refactor: remove unnecessary use of `SourceCode#getAncestors` in rules ([#​17075](https://togithub.com/eslint/eslint/issues/17075)) (Milos Djermanovic) - [`0a7b60a`](https://togithub.com/eslint/eslint/commit/0a7b60a9d5621dbbc1a8a8adda3b7c2060c779ca) chore: update description of `SourceCode#getDeclaredVariables` ([#​17072](https://togithub.com/eslint/eslint/issues/17072)) (Milos Djermanovic) - [`6e2df71`](https://togithub.com/eslint/eslint/commit/6e2df71cc390252aaca212abe3dc0467fe397450) chore: remove unnecessary references to the LICENSE file ([#​17071](https://togithub.com/eslint/eslint/issues/17071)) (Milos Djermanovic) ### [`v8.38.0`](https://togithub.com/eslint/eslint/releases/tag/v8.38.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.37.0...v8.38.0) #### Features - [`a1d561d`](https://togithub.com/eslint/eslint/commit/a1d561d18ed653b56bddbfb1bab1ebe957293563) feat: Move getDeclaredVariables and getAncestors to SourceCode ([#​17059](https://togithub.com/eslint/eslint/issues/17059)) (Nicholas C. Zakas) #### Bug Fixes - [`1c1ece2`](https://togithub.com/eslint/eslint/commit/1c1ece26d1da61e523b83dda25353ec9379eb6c9) fix: do not report on `RegExp(...args)` in `require-unicode-regexp` ([#​17037](https://togithub.com/eslint/eslint/issues/17037)) (Francesco Trotta) #### Documentation - [`7162d34`](https://togithub.com/eslint/eslint/commit/7162d34df9a66c817c3bd4aafd3a03d226b58dd5) docs: Mention new config system is complete ([#​17068](https://togithub.com/eslint/eslint/issues/17068)) (Nicholas C. Zakas) - [`0fd6bb2`](https://togithub.com/eslint/eslint/commit/0fd6bb213ad2de77543c936eda21501653182e52) docs: Update README (GitHub Actions Bot) - [`c83531c`](https://togithub.com/eslint/eslint/commit/c83531c1a6026675f36aa9e33fef14458043974a) docs: Update/remove external links, eg. point to `eslint-community` ([#​17061](https://togithub.com/eslint/eslint/issues/17061)) (Pelle Wessman) - [`a3aa6f5`](https://togithub.com/eslint/eslint/commit/a3aa6f5f146534ed7999ebf8930c524a4871ec0b) docs: Clarify `no-div-regex` rule docs ([#​17051](https://togithub.com/eslint/eslint/issues/17051)) (Francesco Trotta) - [`b0f11cf`](https://togithub.com/eslint/eslint/commit/b0f11cf977a4180bf7c3042e7faeaaa067ffafd0) docs: Update README (GitHub Actions Bot) - [`da8d52a`](https://togithub.com/eslint/eslint/commit/da8d52a9d4edd9b2016cd4a15cd78f1ddadf20c7) docs: Update the second object instance for the "no-new" rule ([#​17020](https://togithub.com/eslint/eslint/issues/17020)) (Ahmadou Waly NDIAYE) - [`518130a`](https://togithub.com/eslint/eslint/commit/518130ae79a16d7bf4d752c211ae88152cc5a6f0) docs: switch language based on current path ([#​16687](https://togithub.com/eslint/eslint/issues/16687)) (Percy Ma) - [`24206c4`](https://togithub.com/eslint/eslint/commit/24206c49a138d4390f815ae122ee12f564bc604b) docs: Update README (GitHub Actions Bot) #### Chores - [`59ed060`](https://togithub.com/eslint/eslint/commit/59ed06041d4670781956221086ea0fca6683788d) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).38.0 ([#​17069](https://togithub.com/eslint/eslint/issues/17069)) (Milos Djermanovic) - [`88c0898`](https://togithub.com/eslint/eslint/commit/88c08984ec259ac22d839397c06beec8ef213120) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`cf682d2`](https://togithub.com/eslint/eslint/commit/cf682d249f04a6a304407d5b9ddbbc4a9714dd62) refactor: simplify new-parens rule schema ([#​17060](https://togithub.com/eslint/eslint/issues/17060)) (MHO) - [`0dde022`](https://togithub.com/eslint/eslint/commit/0dde02211268394bcbc2b0beef55ea2409b6f55d) ci: bump actions/add-to-project from 0.4.1 to 0.5.0 ([#​17055](https://togithub.com/eslint/eslint/issues/17055)) (dependabot\[bot]) ### [`v8.37.0`](https://togithub.com/eslint/eslint/releases/tag/v8.37.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.36.0...v8.37.0) ##### Features - [`b6ab8b2`](https://togithub.com/eslint/eslint/commit/b6ab8b2a2ca8807baca121407f5bfb0a0a839427) feat: `require-unicode-regexp` add suggestions ([#​17007](https://togithub.com/eslint/eslint/issues/17007)) (Josh Goldberg) - [`10022b1`](https://togithub.com/eslint/eslint/commit/10022b1f4bda1ad89193512ecf18c2ee61db8202) feat: Copy getScope() to SourceCode ([#​17004](https://togithub.com/eslint/eslint/issues/17004)) (Nicholas C. Zakas) - [`1665c02`](https://togithub.com/eslint/eslint/commit/1665c029acb92bf8812267f1647ad1a7054cbcb4) feat: Use plugin metadata for flat config serialization ([#​16992](https://togithub.com/eslint/eslint/issues/16992)) (Nicholas C. Zakas) - [`b3634f6`](https://togithub.com/eslint/eslint/commit/b3634f695ddab6a82c0a9b1d8695e62b60d23366) feat: docs license ([#​17010](https://togithub.com/eslint/eslint/issues/17010)) (Samuel Roldan) - [`892e6e5`](https://togithub.com/eslint/eslint/commit/892e6e58c5a07a549d3104de3b6b5879797dc97f) feat: languageOptions.parser must be an object. ([#​16985](https://togithub.com/eslint/eslint/issues/16985)) (Nicholas C. Zakas) ##### Bug Fixes - [`619f3fd`](https://togithub.com/eslint/eslint/commit/619f3fd17324c7b71bf17e02047d0c6dc7e5109e) fix: correctly handle `null` default config in `RuleTester` ([#​17023](https://togithub.com/eslint/eslint/issues/17023)) (Brad Zacher) - [`1fbf118`](https://togithub.com/eslint/eslint/commit/1fbf1184fed57df02640aad4659afb54dc26a2e9) fix: `getFirstToken`/`getLastToken` on comment-only node ([#​16889](https://togithub.com/eslint/eslint/issues/16889)) (Francesco Trotta) - [`129e252`](https://togithub.com/eslint/eslint/commit/129e252132c7c476d7de17f40b54a333ddb2e6bb) fix: Fix typo in `logical-assignment-operators` rule description ([#​17000](https://togithub.com/eslint/eslint/issues/17000)) (Francesco Trotta) ##### Documentation - [`75339df`](https://togithub.com/eslint/eslint/commit/75339df99418df4d7e05a77e42ed7e22eabcc9e0) docs: fix typos and missing info in id-match docs ([#​17029](https://togithub.com/eslint/eslint/issues/17029)) (Ed Lucas) - [`ec2d830`](https://togithub.com/eslint/eslint/commit/ec2d8307850dd039e118c001416606e1e0342bc8) docs: Fix typos in the `semi` rule docs ([#​17012](https://togithub.com/eslint/eslint/issues/17012)) (Andrii Lundiak) - [`e39f28d`](https://togithub.com/eslint/eslint/commit/e39f28d8578a00f4da8d4ddad559547950128a0d) docs: add back to top button ([#​16979](https://togithub.com/eslint/eslint/issues/16979)) (Tanuj Kanti) - [`721c717`](https://togithub.com/eslint/eslint/commit/721c71782a7c11025689a1500e7690fb3794fcce) docs: Custom Processors cleanup and expansion ([#​16838](https://togithub.com/eslint/eslint/issues/16838)) (Ben Perlmutter) - [`d049f97`](https://togithub.com/eslint/eslint/commit/d049f974103e530ef76ede25af701635caf1f405) docs: 'How ESLint is Maintained' page ([#​16961](https://togithub.com/eslint/eslint/issues/16961)) (Ben Perlmutter) - [`5251a92`](https://togithub.com/eslint/eslint/commit/5251a921866e8d3b380dfe8db8a6e6ab97773d5e) docs: Describe guard options for guard-for-in ([#​16986](https://togithub.com/eslint/eslint/issues/16986)) (alope107) - [`6157d81`](https://togithub.com/eslint/eslint/commit/6157d813e19b80481a46f8cbdf9eae18a55e5619) docs: Add example to guard-for-in docs. ([#​16983](https://togithub.com/eslint/eslint/issues/16983)) (alope107) - [`fd47998`](https://togithub.com/eslint/eslint/commit/fd47998af6efadcdf5ba93e0bd1f4c02d97d22b3) docs: update `Array.prototype.toSorted` specification link ([#​16982](https://togithub.com/eslint/eslint/issues/16982)) (Milos Djermanovic) - [`3e1cf6b`](https://togithub.com/eslint/eslint/commit/3e1cf6bfc5ebc29314ddbe462d6cb580e9ab085c) docs: Copy edits on Maintain ESLint docs ([#​16939](https://togithub.com/eslint/eslint/issues/16939)) (Ben Perlmutter) ##### Chores - [`c67f299`](https://togithub.com/eslint/eslint/commit/c67f2992a743de4765bb6f11c12622e3651324b9) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).37.0 ([#​17033](https://togithub.com/eslint/eslint/issues/17033)) (Milos Djermanovic) - [`ee9ddbd`](https://togithub.com/eslint/eslint/commit/ee9ddbd63e262aed0052853760866c7a054af561) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`dddb475`](https://togithub.com/eslint/eslint/commit/dddb47528816cd7e2e737bfde108ed4d62e6a219) chore: upgrade [@​eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@​2](https://togithub.com/2).0.2 ([#​17032](https://togithub.com/eslint/eslint/issues/17032)) (Milos Djermanovic) - [`522431e`](https://togithub.com/eslint/eslint/commit/522431e5206bac2fcb41c0d6dc98a84929203bee) chore: upgrade espree@9.5.1 ([#​17031](https://togithub.com/eslint/eslint/issues/17031)) (Milos Djermanovic) - [`f5f9a88`](https://togithub.com/eslint/eslint/commit/f5f9a88c79b32222c0331a9bac1c02571d953b69) chore: upgrade eslint-visitor-keys@3.4.0 ([#​17030](https://togithub.com/eslint/eslint/issues/17030)) (Milos Djermanovic) - [`4dd8d52`](https://togithub.com/eslint/eslint/commit/4dd8d524e0fc9e8e2019df13f8b968021600e85c) ci: bump actions/stale from 7 to 8 ([#​17026](https://togithub.com/eslint/eslint/issues/17026)) (dependabot\[bot]) - [`ad9dd6a`](https://togithub.com/eslint/eslint/commit/ad9dd6a933fd098a0d99c6a9aa059850535c23ee) chore: remove duplicate scss, ([#​17005](https://togithub.com/eslint/eslint/issues/17005)) (Strek) - [`ada6a3e`](https://togithub.com/eslint/eslint/commit/ada6a3e6e3607523958f35e1260537630ec0e976) ci: unpin Node 19 ([#​16993](https://togithub.com/eslint/eslint/issues/16993)) (Milos Djermanovic) - [`c3da975`](https://togithub.com/eslint/eslint/commit/c3da975e69fde46f35338ce48528841a8dc1ffd2) chore: Remove triage label from template ([#​16990](https://togithub.com/eslint/eslint/issues/16990)) (Nicholas C. Zakas) - [`69bc0e2`](https://togithub.com/eslint/eslint/commit/69bc0e2f4412998f9384600a100d7882ea4dd3f3) ci: pin Node 19 to 19.7.0 ([#​16987](https://togithub.com/eslint/eslint/issues/16987)) (Milos Djermanovic) ### [`v8.36.0`](https://togithub.com/eslint/eslint/releases/tag/v8.36.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.35.0...v8.36.0) #### Features - [`c89a485`](https://togithub.com/eslint/eslint/commit/c89a485c49450532ee3db74f2638429f1f37d0dd) feat: Add `checkJSDoc` option to multiline-comment-style ([#​16807](https://togithub.com/eslint/eslint/issues/16807)) (Laurent Cozic) - [`f5f5e11`](https://togithub.com/eslint/eslint/commit/f5f5e11bd5fd3daab9ccae41e270739c836c305e) feat: Serialize parsers/processors in flat config ([#​16944](https://togithub.com/eslint/eslint/issues/16944)) (Nicholas C. Zakas) - [`4799297`](https://togithub.com/eslint/eslint/commit/4799297ea582c81fd1e5623d32a7ddf7a7f3a126) feat: use [@​eslint-community](https://togithub.com/eslint-community) dependencies ([#​16784](https://togithub.com/eslint/eslint/issues/16784)) (Michaël De Boey) #### Bug Fixes - [`92c1943`](https://togithub.com/eslint/eslint/commit/92c1943ba73ea01e87086236e8736539b0eed558) fix: correctly iterate files matched by glob patterns ([#​16831](https://togithub.com/eslint/eslint/issues/16831)) (Nitin Kumar) #### Documentation - [`b98fdd4`](https://togithub.com/eslint/eslint/commit/b98fdd413a3b07b262bfce6f704c1c1bb8582770) docs: Update README (GitHub Actions Bot) - [`caf08ce`](https://togithub.com/eslint/eslint/commit/caf08ce0cc74917f7c0eec92d25fd784dc33ac4d) docs: fix estree link in custom formatters docs ([#​16967](https://togithub.com/eslint/eslint/issues/16967)) (Milos Djermanovic) - [`3398431`](https://togithub.com/eslint/eslint/commit/3398431574b903757bc78b08c8ed36b7b9fce8eb) docs: Custom Parsers cleanup/expansion ([#​16887](https://togithub.com/eslint/eslint/issues/16887)) (Ben Perlmutter) - [`19d3531`](https://togithub.com/eslint/eslint/commit/19d3531d9b54e1004318d28f9a6e18305c5bcc18) docs: Update README (GitHub Actions Bot) - [`b09a512`](https://togithub.com/eslint/eslint/commit/b09a512107249a4eb19ef5a37b0bd672266eafdb) docs: detect and fix broken links ([#​16837](https://togithub.com/eslint/eslint/issues/16837)) (Nitin Kumar) #### Chores - [`602b111`](https://togithub.com/eslint/eslint/commit/602b11121910a97ab2bc4a95a46dd0ccd0a89309) chore: upgrade [@​eslint/js](https://togithub.com/eslint/js)[@​8](https://togithub.com/8).36.0 ([#​16978](https://togithub.com/eslint/eslint/issues/16978)) (Milos Djermanovic) - [`43c2345`](https://togithub.com/eslint/eslint/commit/43c2345c27024aeab6127e6bbfd55c8b70bd317e) chore: package.json update for [@​eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`00afb84`](https://togithub.com/eslint/eslint/commit/00afb84e5039874c8745a45c953fceaf0c71c454) chore: upgrade [@​eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@​2](https://togithub.com/2).0.1 ([#​16977](https://togithub.com/eslint/eslint/issues/16977)) (Milos Djermanovic) - [`698c5aa`](https://togithub.com/eslint/eslint/commit/698c5aad50e628ff00281dbc786e42de79834035) chore: upgrade espree@9.5.0 ([#​16976](https://togithub.com/eslint/eslint/issues/16976)) (Milos Djermanovic) - [`75acdd2`](https://togithub.com/eslint/eslint/commit/75acdd21c5ce7024252e9d41ed77d2f30587caac) chore: lint more js files in docs ([#​16964](https://togithub.com/eslint/eslint/issues/16964)) (Milos Djermanovic) - [`89d9844`](https://togithub.com/eslint/eslint/commit/89d9844b3151f09b5b21b6eeeda671009ec301e9) ci: bump actions/add-to-project from 0.4.0 to 0.4.1 ([#​16943](https://togithub.com/eslint/eslint/issues/16943)) (dependabot\[bot]) </details> <details> <summary>pnpm/pnpm</summary> ### [`v8.6.0`](https://togithub.com/pnpm/pnpm/releases/tag/v8.6.0) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.5.1...v8.6.0) #### Minor Changes - Some settings influence the structure of the lockfile, so we cannot reuse the lockfile if those settings change. As a result, we need to store such settings in the lockfile. This way we will know with which settings the lockfile has been created. A new field will now be present in the lockfile: `settings`. It will store the values of two settings: `autoInstallPeers` and `excludeLinksFromLockfile`. If someone tries to perform a `frozen-lockfile` installation and their active settings don't match the ones in the lockfile, then an error message will be thrown. The lockfile format version is bumped from v6.0 to v6.1. Related PR: [#​6557](https://togithub.com/pnpm/pnpm/pull/6557) Related issue: [#​6312](https://togithub.com/pnpm/pnpm/issues/6312) - A new setting, `exclude-links-from-lockfile`, is now supported. When enabled, specifiers of local linked dependencies won't be duplicated in the lockfile. This setting was primarily added for use by [Bit CLI](https://togithub.com/teambit/bit), which links core aspects to `node_modules` from external directories. As such, the locations may vary across different machines, resulting in the generation of lockfiles with differing locations. #### Patch Changes - Don't print "Lockfile is up-to-date" message before finishing all the lockfile checks [#​6544](https://togithub.com/pnpm/pnpm/issues/6544). - When updating dependencies, preserve the range prefix in aliased dependencies. So `npm:foo@1.0.0` becomes `npm:foo@1.1.0`. - Print a meaningful error when a project referenced by the `workspace:` protocol is not found in the workspace [#​4477](https://togithub.com/pnpm/pnpm/issues/4477). - `pnpm rebuild` should not fail when `node-linker` is set to `hoisted` and there are skipped optional dependencies [#​6553](https://togithub.com/pnpm/pnpm/pull/6553). - Peers resolution should not fail when a linked in dependency resolves a peer dependency. - Build projects in a workspace in correct order [#​6568](https://togithub.com/pnpm/pnpm/pull/6568). #### Our Gold Sponsors <table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://bit.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/bit.svg" width="80"></a> </td> <td align="center" valign="middle"> <a href="https://novu.co/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/novu.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/novu_light.svg" /> <img src="https://pnpm.io/img/users/novu.svg" width="180" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://prisma.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/prisma.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/prisma_light.svg" /> <img src="https://pnpm.io/img/users/prisma.svg" width="180" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://www.flightcontrol.dev/?ref=pnpm" target="_blank"><img src="https://pnpm.io/img/users/flightcontrol.png" width="240"></a> </td> </tr> </tbody> </table> #### Our Silver Sponsors <table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://leniolabs.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <img src="https://pnpm.io/img/users/leniolabs.jpg" width="80"> </a> </td> <td align="center" valign="middle"> <a href="https://vercel.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/vercel.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/vercel_light.svg" /> <img src="https://pnpm.io/img/users/vercel.svg" width="180" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://depot.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/depot.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/depot_light.svg" /> <img src="https://pnpm.io/img/users/depot.svg" width="200" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://moonrepo.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/moonrepo.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/moonrepo_light.svg" /> <img src="https://pnpm.io/img/users/moonrepo.svg" width="200" /> </picture> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://www.thinkmill.com.au/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/thinkmill.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/thinkmill_light.svg" /> <img src="https://pnpm.io/img/users/thinkmill.svg" width="200" /> </picture> </a> </td> <td align="center" valign="middle"> <a href="https://devowl.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/devowlio.svg" /> <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/devowlio.svg" /> <img src="https://pnpm.io/img/users/devowlio.svg" width="200" /> </picture> </a> </td> </tr> </tbody> </table> </details> <details> <summary>prettier/prettier</summary> ### [`v2.8.8`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​288) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.7...2.8.8) This version is a republished version of v2.8.7. A bad version was accidentally published and [it can't be unpublished](https://togithub.com/npm/cli/issues/1686), apologies for the churn. ### [`v2.8.7`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​287) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) [diff](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) ##### Allow multiple decorators on same getter/setter ([#​14584](https://togithub.com/prettier/prettier/pull/14584) by [@​fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```ts // Input class A { @​decorator() get foo () {} @​decorator() set foo (value) {} } // Prettier 2.8.6 SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3) 3 | get foo () {} 4 | > 5 | @​decorator() | ^^^^^^^^^^^^ 6 | set foo (value) {} 7 | } // Prettier 2.8.7 class A { @​decorator() get foo() {} @​decorator() set foo(value) {} } ``` ### [`v2.8.6`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​286) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) [diff](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) ##### Allow decorators on private members and class expressions ([#​14548](https://togithub.com/prettier/prettier/pull/14548) by [@​fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```ts // Input class A { @​decorator() #privateMethod () {} } // Prettier 2.8.5 SyntaxError: Decorators are not valid here. (2:3) 1 | class A { > 2 | @​decorator() | ^^^^^^^^^^^^ 3 | #privateMethod () {} 4 | } // Prettier 2.8.6 class A { @​decorator() #privateMethod() {} } ``` ### [`v2.8.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​285) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) [diff](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) ##### Support TypeScript 5.0 ([#​14391](https://togithub.com/prettier/prettier/pull/14391) by [@​fisker](https://togithub.com/fisker), [#​13819](https://togithub.com/prettier/prettier/pull/13819) by [@​fisker](https://togithub.com/fisker), [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) TypeScript 5.0 introduces two new syntactic features: - `const` modifiers for type parameters - `export type *` declarations ##### Add missing parentheses for decorator ([#​14393](https://togithub.com/prettier/prettier/pull/14393) by [@​fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```jsx // Input class Person { @​(myDecoratorArray[0]) greet() {} } // Prettier 2.8.4 class Person { @​myDecoratorArray[0] greet() {} } // Prettier 2.8.5 class Person { @​(myDecoratorArray[0]) greet() {} } ``` ##### Add parentheses for `TypeofTypeAnnotation` to improve readability ([#​14458](https://togithub.com/prettier/prettier/pull/14458) by [@​fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```tsx // Input type A = (typeof node.children)[]; // Prettier 2.8.4 type A = typeof node.children[]; // Prettier 2.8.5 type A = (typeof node.children)[]; ``` ##### Support `max_line_length=off` when parsing `.editorconfig` ([#​14516](https://togithub.com/prettier/prettier/pull/14516) by [@​josephfrazier](https://togithub.com/josephfrazier)) If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting, it will be interpreted as a `printWidth` of `Infinity` rather than being ignored (which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration). <!-- prettier-ignore --> ```html <!-- Input --> <div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/> <!-- Prettier 2.8.4 --> <div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />; <!-- Prettier 2.8.5 --> <div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />; ``` </details> <details> <summary>Microsoft/TypeScript</summary> ### [`v5.0.4`](https://togithub.com/microsoft/TypeScript/releases/tag/v5.0.4): TypeScript 5.0.4 [Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.4) For release notes, check out the [release announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/). For the complete list of fixed issues, check out the - [fixed issues query for Typescript v5.0.0 (Beta)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.0%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.1 (RC)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.1%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.2 (Stable)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.2%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.3 (Stable)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.3%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.4 (Stable)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.4%22+is%3Aclosed+). Downloads are available on: - [npm](https://www.npmjs.com/package/typescript) - [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild) ### [`v5.0.3`](https://togithub.com/microsoft/TypeScript/releases/tag/v5.0.3): TypeScript 5.0.3 [Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v5.0.2...v5.0.3) For release notes, check out the [release announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/). For the complete list of fixed issues, check out the - [fixed issues query for Typescript v5.0.0 (Beta)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.0%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.1 (RC)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.1%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.2 (Stable)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.2%22+is%3Aclosed+). - [fixed issues query for Typescript v5.0.3 (Stable)](https://togithub.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93\&q=milestone%3A%22TypeScript+5.0.3%22+is%3Aclosed+). Downloads are available on: - [npm](https://www.npmjs.com/package/typescript) - [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild) </details> <details> <summary>vitest-dev/vitest</summary> ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->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/christianemmert/ts-starter). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
David-Duefrene
referenced
this pull request
in David-Duefrene/dataviewer
Jun 6, 2023
[![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.1` -> `0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ### [`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 - Remove `browser` from allowed pools inside `poolMatchGlob` config option. Please, use Vitest workspaces for running tests in the browser. - 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) [<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b) - The change should be minor: ```diff - declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} } ``` ##### 🚀 Features - 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) [<samp>(0c09a)</samp>](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.mock('./path/to/module.js', () => { return { originalMethod: mockedMethod } }) ``` - 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) [<samp>(7c8f0)</samp>](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) [<samp>(9bdb1)</samp>](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) [<samp>(730af)</samp>](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) [<samp>(e24cd)</samp>](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) [<samp>(8d460)</samp>](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) [<samp>(ba3d1)</samp>](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) [<samp>(481b1)</samp>](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) [<samp>(fbb14)</samp>](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) [<samp>(036de)</samp>](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) [<samp>(19fcd)</samp>](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) [<samp>(62c14)</samp>](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) [<samp>(ba81d)</samp>](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) [<samp>(1f118)</samp>](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) [<samp>(78bad)</samp>](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) [<samp>(29eeb)</samp>](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) [<samp>(0a287)</samp>](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) [<samp>(d9fda)</samp>](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) [<samp>(21942)</samp>](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) [<samp>(efce3)</samp>](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) [<samp>(c7da1)</samp>](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) [<samp>(c759a)</samp>](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) [<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8) - Add missing `import.meta.hot.send` mock - by [@​antfu](https://togithub.com/antfu) [<samp>(b1624)</samp>](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) [<samp>(a3393)</samp>](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) [<samp>(7b2c8)</samp>](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) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->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/David-Duefrene/dataviewer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS42OS4zIiwidXBkYXRlZEluVmVyIjoiMzUuMTEwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in creatorsgarten/contentsgarten
Jun 6, 2023
[![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.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/creatorsgarten/contentsgarten). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 task
renovate bot
referenced
this pull request
in JoshuaKGoldberg/ts-api-utils
Jun 10, 2023
[![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.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in JoshuaKGoldberg/create-typescript-app
Jun 14, 2023
…516) [![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/coverage-istanbul](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul#readme) ([source](https://togithub.com/vitest-dev/vitest)) | [`^0.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-istanbul/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/template-typescript-node-package). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in JoshuaKGoldberg/create-typescript-app
Jun 14, 2023
[![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.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/template-typescript-node-package). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
andipaetzold
referenced
this pull request
in andipaetzold/react-firehooks
Jun 14, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.2.0` -> `18.2.12`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.0/18.2.12) | [![age](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.12/compatibility-slim/18.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.12/confidence-slim/18.2.0)](https://docs.renovatebot.com/merge-confidence/) | | [@vitest/coverage-c8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-c8#readme) ([source](https://togithub.com/vitest-dev/vitest)) | [`0.30.1` -> `0.32.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.30.1/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.32.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.32.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | | [happy-dom](https://togithub.com/capricorn86/happy-dom) | [`9.9.2` -> `9.20.3`](https://renovatebot.com/diffs/npm/happy-dom/9.9.2/9.20.3) | [![age](https://badges.renovateapi.com/packages/npm/happy-dom/9.20.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/happy-dom/9.20.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/happy-dom/9.20.3/compatibility-slim/9.9.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/happy-dom/9.20.3/confidence-slim/9.9.2)](https://docs.renovatebot.com/merge-confidence/) | | [rimraf](https://togithub.com/isaacs/rimraf) | [`5.0.0` -> `5.0.1`](https://renovatebot.com/diffs/npm/rimraf/5.0.0/5.0.1) | [![age](https://badges.renovateapi.com/packages/npm/rimraf/5.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/rimraf/5.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/rimraf/5.0.1/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/rimraf/5.0.1/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | | [semantic-release](https://togithub.com/semantic-release/semantic-release) | [`21.0.1` -> `21.0.5`](https://renovatebot.com/diffs/npm/semantic-release/21.0.1/21.0.5) | [![age](https://badges.renovateapi.com/packages/npm/semantic-release/21.0.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/semantic-release/21.0.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/semantic-release/21.0.5/compatibility-slim/21.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/semantic-release/21.0.5/confidence-slim/21.0.1)](https://docs.renovatebot.com/merge-confidence/) | | [typedoc](https://typedoc.org) ([source](https://togithub.com/TypeStrong/TypeDoc)) | [`0.24.6` -> `0.24.8`](https://renovatebot.com/diffs/npm/typedoc/0.24.6/0.24.8) | [![age](https://badges.renovateapi.com/packages/npm/typedoc/0.24.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/typedoc/0.24.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/typedoc/0.24.8/compatibility-slim/0.24.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/typedoc/0.24.8/confidence-slim/0.24.6)](https://docs.renovatebot.com/merge-confidence/) | | [typescript](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/TypeScript)) | [`5.0.4` -> `5.1.3`](https://renovatebot.com/diffs/npm/typescript/5.0.4/5.1.3) | [![age](https://badges.renovateapi.com/packages/npm/typescript/5.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/typescript/5.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/typescript/5.1.3/compatibility-slim/5.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/typescript/5.1.3/confidence-slim/5.0.4)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.30.1` -> `0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ### [`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 - Remove `browser` from allowed pools inside `poolMatchGlob` config option. Please, use Vitest workspaces for running tests in the browser. - 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) [<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b) - The change should be minor: ```diff - declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} } ``` ##### 🚀 Features - 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) [<samp>(0c09a)</samp>](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.mock('./path/to/module.js', () => { return { originalMethod: mockedMethod } }) ``` - 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) [<samp>(7c8f0)</samp>](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) [<samp>(9bdb1)</samp>](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) [<samp>(730af)</samp>](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) [<samp>(e24cd)</samp>](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) [<samp>(8d460)</samp>](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) [<samp>(ba3d1)</samp>](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) [<samp>(481b1)</samp>](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) [<samp>(fbb14)</samp>](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) [<samp>(036de)</samp>](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) [<samp>(19fcd)</samp>](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) [<samp>(62c14)</samp>](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) [<samp>(ba81d)</samp>](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) [<samp>(1f118)</samp>](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) [<samp>(78bad)</samp>](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) [<samp>(29eeb)</samp>](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) [<samp>(0a287)</samp>](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) [<samp>(d9fda)</samp>](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) [<samp>(21942)</samp>](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) [<samp>(efce3)</samp>](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) [<samp>(c7da1)</samp>](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) [<samp>(c759a)</samp>](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) [<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8) - Add missing `import.meta.hot.send` mock - by [@​antfu](https://togithub.com/antfu) [<samp>(b1624)</samp>](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) [<samp>(a3393)</samp>](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) [<samp>(7b2c8)</samp>](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) </details> <details> <summary>capricorn86/happy-dom</summary> ### [`v9.20.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.20.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.20.2...v9.20.3) ##### :construction_worker_man: Patch fixes - Fixes issue where all properties didn't get copied from `HTMLUnknownElement` to a custom element that is replacing it when it is defined. ([#​668](https://togithub.com/capricorn86/happy-dom/issues/668)) ### [`v9.20.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.20.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.20.1...v9.20.2) ##### :construction_worker_man: Patch fixes - Fixes issue where CSS variable values where not returned by `Window.getComputedStyle()` when calling `CSSStyleDeclaration.getPropertyValue()`. ([#​932](https://togithub.com/capricorn86/happy-dom/issues/932)) ### [`v9.20.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.20.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.20.0...v9.20.1) ##### :construction_worker_man: Patch fixes - Fixes problem with `querySelectorAll()` where it didn't always return elements in document order. ([#​928](https://togithub.com/capricorn86/happy-dom/issues/928)) ### [`v9.20.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.20.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.19.2...v9.20.0) ##### :art: Features - Adds support for disabling the simulation of rendering when calculating computed style. The rendering process converts units such as rem, em and cm to pixels, but it is very limited. ([#​929](https://togithub.com/capricorn86/happy-dom/issues/929)) - Changes the behavior of converting percentage values to "0px" when calculating computed style (as it fails to convert) to just leave the values. ### [`v9.19.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.19.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.19.1...v9.19.2) ##### :construction_worker_man: Patch fixes - Fixes issue where attribute selectors with an operator and with a value without quatation marks no longer worked (e.g. "\[attr^=value]"). ([#​923](https://togithub.com/capricorn86/happy-dom/issues/923)) ### [`v9.19.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.19.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.19.0...v9.19.1) ##### :construction_worker_man: Patch fixes - Adds support for the mime type "apng" to `XMLHttpRequest` *** Thank you [@​btea](https://togithub.com/btea) for your contribution! ### [`v9.19.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.19.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.18.3...v9.19.0) ##### :art: Features - Adds support for "rem", "em", "vw", "vh", "vmin", "vmax", "cm", "mm", "in", "pt", "pc", "Q" measurement values to `Window.getComputedStyle()` and `Window.matchMedia()` ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for "%" measurement values to `Window.getComputedStyle()` and `Window.matchMedia()` when setting font size (other properties will be set to "0px") ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Sets "font: 16px "Times new Roman"" as default font on the `<html>` when using `Window.getComputedStyle()` ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for "outline", "outline-color", "outline-style", "outline-width", "outline-offset", "letter-spacing", "word-spacing" and "text-indent" to `CSSStyleDeclaration`. ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for the media query rules "orientation", "prefers-color-scheme", "any-hover", "hover", "any-pointer", "pointer", "display-mode", "width", "height", "min-aspect-ratio", "max-aspect-ratio" and "aspect-ratio" ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Improves support for the media query rules "min-width", "max-width", "min-height" and "max-height" ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for media types "all", "screen" and "print" to media queries ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for the "only", "not", "and" and "or" operators to media queries ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for ranges to media queries ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for "@​-webkit-keyframes", "@​-webkit-container" and "@​-webkit-supports" to CSS parser ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) ##### :construction_worker_man: Patch fixes - Adds support for ignoring unknown "@​" rules to the CSS parser. ([#​921](https://togithub.com/capricorn86/happy-dom/issues/921)) - Adds support for the "height" property to `CSSStyleDeclaration`. Not having support for "height" was missed somehow, as we have support for "width". ([#​922](https://togithub.com/capricorn86/happy-dom/issues/922)) ### [`v9.18.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.18.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.18.2...v9.18.3) ##### :construction_worker_man: Patch fixes - Fixes issue where non-string values did not get converted to strings in `CharacterData.data`, `CharacterData.nodeValue` or `CharacterData.textContent`. ([#​819](https://togithub.com/capricorn86/happy-dom/issues/819)) ### [`v9.18.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.18.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.18.1...v9.18.2) ##### :construction_worker_man: Patch fixes - Fixes issue in the XML parser where it failed to parse comments including dash characters (-). ([#​916](https://togithub.com/capricorn86/happy-dom/issues/916)) *** Thank you [@​gtm-nayan](https://togithub.com/gtm-nayan) for your contribution! ### [`v9.18.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.18.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.18.0...v9.18.1) ##### :construction_worker_man: Patch fixes - Fixes issue where attribute query selectors using "~" or "|" as operators for finding attributes containing a word did not match when there was only one word. ([#​914](https://togithub.com/capricorn86/happy-dom/issues/914)) ### [`v9.18.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.18.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.17.0...v9.18.0) ##### :art: Features - Adds support for triggering an error event when attempting to fetch a CSS file or Javascript file when it has been disabled using "window.happyDOM.settings.\*". ([#​849](https://togithub.com/capricorn86/happy-dom/issues/849)) ### [`v9.17.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.17.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.16.0...v9.17.0) ##### :art: Features - Adds support for "i" and "s" modifiers to attribute query selectors. ([#​911](https://togithub.com/capricorn86/happy-dom/issues/911)) ### [`v9.16.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.16.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.15.0...v9.16.0) ##### :art: Features - Adds support for encoding HTML entities to the XML parser. ([#​908](https://togithub.com/capricorn86/happy-dom/issues/908)) - Adds support for escaping text to `XMLSerializer.serializeToString()`. ([#​908](https://togithub.com/capricorn86/happy-dom/issues/908)) ### [`v9.15.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.15.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.14.0...v9.15.0) ##### :art: Features - Changes deprecated "shadowroot" attribute to "shadowrootmode" in [Declarative Shadow DOM](https://developer.chrome.com/articles/declarative-shadow-dom/) generated by `Element.getInnerHTML()`. ([#​898](https://togithub.com/capricorn86/happy-dom/issues/898)) *** Thank you [@​crypto-scythe](https://togithub.com/crypto-scythe) for your contribution! ### [`v9.14.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.14.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.13.1...v9.14.0) ##### :art: Features - Adds support for `Document.links`. ([#​896](https://togithub.com/capricorn86/happy-dom/issues/896)) *** Thank you [@​btea](https://togithub.com/btea) for your contribution! ### [`v9.13.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.13.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.13.0...v9.13.1) ##### :construction_worker_man: Patch fixes - Fixes issue related to "@​" CSS rules in (e.g. "@​-webkit-keyframes") causing an exception to be thrown in `CSSStyleDeclaration`. ([#​889](https://togithub.com/capricorn86/happy-dom/issues/889)) *** Thank you [@​btea](https://togithub.com/btea) for your contribution! ### [`v9.13.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.13.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.12.0...v9.13.0) ##### :art: Features - Improves performance of `Element.querySelectorAll()`. The performance was decreased after the implementation of document sorting order, due to the fact that it relied on `Object.assign()` for each match, which is slower than iterating through all matches in the end. ([#​909](https://togithub.com/capricorn86/happy-dom/issues/909)) ### [`v9.12.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.12.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.11.0...v9.12.0) ##### :art: Features - Adds support for the "of selector" to ":nth-child" and ":nth-last-child" query selectors. ([#​905](https://togithub.com/capricorn86/happy-dom/issues/905)) ##### :construction_worker_man: Patch fixes - Fixes bug but where "nth-\*" query selectors didn't return the correct elements when prefixing "n" with "-". ([#​905](https://togithub.com/capricorn86/happy-dom/issues/905)) ### [`v9.11.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.11.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.9...v9.11.0) ##### :art: Features - Refactors the XML parser, which fixes several issues related to parsing complex HTML (e.g. attributes containing ">"). ([#​578](https://togithub.com/capricorn86/happy-dom/issues/578)) - Improves performance of XML parsing significantly. ([#​578](https://togithub.com/capricorn86/happy-dom/issues/578)) ### [`v9.10.9`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.9) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.8...v9.10.9) ##### :construction_worker_man: Patch fixes - Adds support for `Request.formData()`. ([#​892](https://togithub.com/capricorn86/happy-dom/issues/892)) *** Thank you [@​rolandjohann](https://togithub.com/rolandjohann) for your contribution! ### [`v9.10.8`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.8) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.7...v9.10.8) ##### :construction_worker_man: Patch fixes - Fixes an issue where `HTMLAnchorElement.toString()` returned "HTMLElement.outerHTML", but should return "HTMLAnchorElement.href" according to spec. ([#​890](https://togithub.com/capricorn86/happy-dom/issues/890)) *** Thank you [@​Schleuse](https://togithub.com/Schleuse) for your contribution! ### [`v9.10.7`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.7) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.6...v9.10.7) ##### :construction_worker_man: Patch fixes - Fix for parsing CSS comments with asterisks. ([#​887](https://togithub.com/capricorn86/happy-dom/issues/887)) *** Thank you for your contribution [@​htuomola](https://togithub.com/htuomola)! ### [`v9.10.6`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.6) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.5...v9.10.6) ##### :construction_worker_man: Patch fixes - Fixes bug where errors where not handled correctly when performing a synchronous request with `XMLHttpRequest`. ([#​795](https://togithub.com/capricorn86/happy-dom/issues/795)) - Adds support for `XMLHttpRequest.response`. ([#​788](https://togithub.com/capricorn86/happy-dom/issues/788)) *** Thank you [@​Mas0nShi](https://togithub.com/Mas0nShi) for your contribution! ### [`v9.10.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.4...v9.10.5) ##### :construction_worker_man: Patch fixes - Fixes issue in `HTMLCollection` and `HTMLFormControlsCollection` related to id/name of elements colliding with class properties and methods. ([#​875](https://togithub.com/capricorn86/happy-dom/issues/875)) ### [`v9.10.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.3...v9.10.4) ##### :construction_worker_man: Patch fixes - Fixes issue related to query selection for attributes not using apostrophe for the value. This caused an issue with finding elements by text in Testing Library. ([#​883](https://togithub.com/capricorn86/happy-dom/issues/883)) ### [`v9.10.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.2...v9.10.3) ##### :construction_worker_man: Patch fixes - Fixes issue where React "onChange" listeners never got executed when triggering a `click()`. ([#​880](https://togithub.com/capricorn86/happy-dom/issues/880)) - Fixes issue where it was not possible to use multiple pseudo query selectors (e.g. "input:not(\[type]):not(\[list])"). This solves a problem in Testing Library where it failed to find elements by role "checkbox". ([#​880](https://togithub.com/capricorn86/happy-dom/issues/880)) ### [`v9.10.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.1...v9.10.2) ##### :construction_worker_man: Patch fixes - Fixes issue related to query selection for attributes with empty value (e.g. '\[attr1=""]'). ([#​881](https://togithub.com/capricorn86/happy-dom/issues/881)) ### [`v9.10.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.10.0...v9.10.1) ##### :construction_worker_man: Patch fixes - Adds support for using escaped characters to ID:s in query selectors (e.g. "#\\\\:id"). ([#​877](https://togithub.com/capricorn86/happy-dom/issues/877)) ### [`v9.10.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v9.10.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v9.9.2...v9.10.0) ##### :art: Features - Refactors the internal logic of how query selection works to improve performance and make maintenance easier. ([#​792](https://togithub.com/capricorn86/happy-dom/issues/792)) - Adds support for adjacent sibling to query selectors (e.g. ".a + .b"). ([#​792](https://togithub.com/capricorn86/happy-dom/issues/792)) ##### :construction_worker_man: Patch fixes - Fixes issue where `*.querySelectorAll()` did not return elements in document order. ([#​285](https://togithub.com/capricorn86/happy-dom/issues/285)) </details> <details> <summary>isaacs/rimraf</summary> ### [`v5.0.1`](https://togithub.com/isaacs/rimraf/compare/v5.0.0...v5.0.1) [Compare Source](https://togithub.com/isaacs/rimraf/compare/v5.0.0...v5.0.1) </details> <details> <summary>semantic-release/semantic-release</summary> ### [`v21.0.5`](https://togithub.com/semantic-release/semantic-release/releases/tag/v21.0.5) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v21.0.4...v21.0.5) ##### Bug Fixes - **deps:** update dependency marked to v5 ([452e1fa](https://togithub.com/semantic-release/semantic-release/commit/452e1fa4b99759f408b503480e7a1ee8cc76f007)) ### [`v21.0.4`](https://togithub.com/semantic-release/semantic-release/releases/tag/v21.0.4) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v21.0.3...v21.0.4) ##### Bug Fixes - **deps:** update dependency [@​semantic-release/error](https://togithub.com/semantic-release/error) to v4 ([d259350](https://togithub.com/semantic-release/semantic-release/commit/d259350c3ed274078fb5bd000250966c93b64503)) ### [`v21.0.3`](https://togithub.com/semantic-release/semantic-release/releases/tag/v21.0.3) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v21.0.2...v21.0.3) ##### Bug Fixes - bump `@semantic-release/commit-analyzer` to `v10.0.0-beta.1` ([4a6b31f](https://togithub.com/semantic-release/semantic-release/commit/4a6b31f57e84287aaa8e4868d57ba54aa2ca2b71)) - bump `@semantic-release/github` to `9.0.0-beta.2` ([#​2818](https://togithub.com/semantic-release/semantic-release/issues/2818)) ([6f19d77](https://togithub.com/semantic-release/semantic-release/commit/6f19d77e54e21ae3a4e83a992119effb923afc94)) - **deps:** updated the beta plugins to stable versions ([3941018](https://togithub.com/semantic-release/semantic-release/commit/39410186dfd3c24c30a9b316a83d466af6c54ace)) ### [`v21.0.2`](https://togithub.com/semantic-release/semantic-release/releases/tag/v21.0.2) [Compare Source](https://togithub.com/semantic-release/semantic-release/compare/v21.0.1...v21.0.2) ##### Bug Fixes - **deps:** update dependency [@​semantic-release/release-notes-generator](https://togithub.com/semantic-release/release-notes-generator) to v11 ([#​2778](https://togithub.com/semantic-release/semantic-release/issues/2778)) ([ac40804](https://togithub.com/semantic-release/semantic-release/commit/ac40804dc4b90df783bbee3e439e03cefb76c47f)) </details> <details> <summary>TypeStrong/TypeDoc</summary> ### [`v0.24.8`](https://togithub.com/TypeStrong/TypeDoc/blob/HEAD/CHANGELOG.md#v0248-2023-06-04) [Compare Source](https://togithub.com/TypeStrong/TypeDoc/compare/v0.24.7...v0.24.8) ##### Features - Added support for TypeScript 5.1, [#​2296](https://togithub.com/TypeStrong/TypeDoc/issues/2296). - Added `navigation.fullTree` to control rendering the full navigation tree on each page, [#​2287](https://togithub.com/TypeStrong/TypeDoc/issues/2287). This option will likely be replaced in 0.25 with dynamic loading of the full tree. - TypeDoc's `--pretty` option now also controls whether generated HTML contains line breaks, [#​2287](https://togithub.com/TypeStrong/TypeDoc/issues/2287). - Optimized icon caching to reduce file size in generated HTML documentation, [#​2287](https://togithub.com/TypeStrong/TypeDoc/issues/2287). - Render property description of "roughly top level" object types, [#​2276](https://togithub.com/TypeStrong/TypeDoc/issues/2276). - Added `MarkdownEvent.INCLUDE` for plugins, [#​2284](https://togithub.com/TypeStrong/TypeDoc/issues/2284). ##### Bug Fixes - When rendering functions/methods, TypeDoc will now render the comment summary above the parameters/return type, and any other block tags in the order they are defined in the comment, [#​2285](https://togithub.com/TypeStrong/TypeDoc/issues/2285). - Comments are no longer removed from classes/interfaces containing call signatures, [#​2290](https://togithub.com/TypeStrong/TypeDoc/issues/2290). ##### Thanks! - [@​krisztianb](https://togithub.com/krisztianb) - [@​WikiRik](https://togithub.com/WikiRik) ### [`v0.24.7`](https://togithub.com/TypeStrong/TypeDoc/blob/HEAD/CHANGELOG.md#v0247-2023-05-08) [Compare Source](https://togithub.com/TypeStrong/TypeDoc/compare/v0.24.6...v0.24.7) ##### Features - TypeDoc will now allow conversion without any entry points to support "readme only" packages, [#​2264](https://togithub.com/TypeStrong/TypeDoc/issues/2264). ##### Bug Fixes - Category children are now sorted according to the `sort` option, [#​2272](https://togithub.com/TypeStrong/TypeDoc/issues/2272). - Inline tags no longer require a space after the tag name to be parsed as a tag, [#​2273](https://togithub.com/TypeStrong/TypeDoc/issues/2273). - Fixed module/namespace links in navigation when viewed in Safari, [#​2275](https://togithub.com/TypeStrong/TypeDoc/issues/2275). </details> <details> <summary>Microsoft/TypeScript</summary> ### [`v5.1.3`](https://togithub.com/microsoft/TypeScript/releases/tag/v5.1.3): TypeScript 5.1.3 [Compare Source](https://togithub.com/Microsoft/TypeScript/compare/v5.0.4...v5.1.3) For release notes, check out the [release announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->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/andipaetzold/react-firehooks). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS42My4xIiwidXBkYXRlZEluVmVyIjoiMzUuMTEwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in JoshuaKGoldberg/prettier-plugin-curly
Jun 16, 2023
[![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/coverage-istanbul](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul#readme) ([source](https://togithub.com/vitest-dev/vitest)) | [`^0.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-istanbul/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-istanbul/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/prettier-plugin-curly). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in JoshuaKGoldberg/prettier-plugin-curly
Jun 16, 2023
[![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.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/prettier-plugin-curly). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
referenced
this pull request
in JoshuaKGoldberg/tidelift-me-up
Jun 17, 2023
[![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.31.0` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.32.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/compatibility-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.0/confidence-slim/0.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/tidelift-me-up). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot
referenced
this pull request
in ascorbic/unpic-img
Jul 5, 2023
[![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.1` -> `^0.32.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.32.2) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.32.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.32.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.32.2/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.32.2/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest</summary> ### [`v0.32.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ##### 🐞 Bug Fixes - **browser**: Don't fail on importing diff-sequences - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(00b0e)</samp>](https://togithub.com/vitest-dev/vitest/commit/00b0e6a3) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ### [`v0.32.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ##### 🚀 Features - Export `registerConsoleShortcuts` from `vitest/node` - by [@​deot](https://togithub.com/deot) in [https://github.com/vitest-dev/vitest/issues/3563](https://togithub.com/vitest-dev/vitest/issues/3563) [<samp>(bc49b)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc49bac7) - **expect**: Support `expect.unreachable` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3556](https://togithub.com/vitest-dev/vitest/issues/3556) [<samp>(8e385)</samp>](https://togithub.com/vitest-dev/vitest/commit/8e385bb0) - **runner**: `describe`/`test` name support anonymous function - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3562](https://togithub.com/vitest-dev/vitest/issues/3562) [<samp>(3d436)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d43638c) ##### 🐞 Bug Fixes - Avoid call stack recursion with large error (fix: [#​3060](https://togithub.com/vitest-dev/vitest/issues/3060)) - by [@​nathanmmiller](https://togithub.com/nathanmmiller) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3078](https://togithub.com/vitest-dev/vitest/issues/3078) and [https://github.com/vitest-dev/vitest/issues/3060](https://togithub.com/vitest-dev/vitest/issues/3060) [<samp>(02196)</samp>](https://togithub.com/vitest-dev/vitest/commit/02196f9d) - Automatically remove define related configuration - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3552](https://togithub.com/vitest-dev/vitest/issues/3552) [<samp>(368b8)</samp>](https://togithub.com/vitest-dev/vitest/commit/368b8259) - Import `performance` from `perf_hooks` - by [@​Max10240](https://togithub.com/Max10240) and **wangbaolong.wbl** in [https://github.com/vitest-dev/vitest/issues/3578](https://togithub.com/vitest-dev/vitest/issues/3578) and [https://github.com/vitest-dev/vitest/issues/3579](https://togithub.com/vitest-dev/vitest/issues/3579) [<samp>(24ec8)</samp>](https://togithub.com/vitest-dev/vitest/commit/24ec85a8) - Revert concordance diff, use jest's diff output - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3582](https://togithub.com/vitest-dev/vitest/issues/3582) [<samp>(9c7ea)</samp>](https://togithub.com/vitest-dev/vitest/commit/9c7ea382) - Typo in config suggestion - by [@​Krisell](https://togithub.com/Krisell) in [https://github.com/vitest-dev/vitest/issues/3583](https://togithub.com/vitest-dev/vitest/issues/3583) [<samp>(68985)</samp>](https://togithub.com/vitest-dev/vitest/commit/689855bb) - **browser**: - Change optimized deps to use `vitest` - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3580](https://togithub.com/vitest-dev/vitest/issues/3580) [<samp>(b4ac8)</samp>](https://togithub.com/vitest-dev/vitest/commit/b4ac88e9) - Access **vi_inject** only if it was injected - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3587](https://togithub.com/vitest-dev/vitest/issues/3587) [<samp>(d9e14)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9e1419a) - **mocker**: - Respect namespace import when hoisting vi.mock - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3547](https://togithub.com/vitest-dev/vitest/issues/3547) [<samp>(158c4)</samp>](https://togithub.com/vitest-dev/vitest/commit/158c4bb0) - **ui**: - Navigate to dashboard when re-running tests from coverage page - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3529](https://togithub.com/vitest-dev/vitest/issues/3529) [<samp>(bc283)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc283ae3) - **vite-node**: - Correctly resolve virtual modules - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3544](https://togithub.com/vitest-dev/vitest/issues/3544) [<samp>(0cbb0)</samp>](https://togithub.com/vitest-dev/vitest/commit/0cbb07b4) - Fix errors caused by commonjs export circular references - by [@​rxliuli](https://togithub.com/rxliuli) in [https://github.com/vitest-dev/vitest/issues/3570](https://togithub.com/vitest-dev/vitest/issues/3570) [<samp>(b097c)</samp>](https://togithub.com/vitest-dev/vitest/commit/b097cef8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ### [`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 - Remove `browser` from allowed pools inside `poolMatchGlob` config option. Please, use Vitest workspaces for running tests in the browser. - 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) [<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b) - The change should be minor: ```diff - declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} } ``` ##### 🚀 Features - 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) [<samp>(0c09a)</samp>](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.mock('./path/to/module.js', () => { return { originalMethod: mockedMethod } }) ``` - 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) [<samp>(7c8f0)</samp>](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) [<samp>(9bdb1)</samp>](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) [<samp>(730af)</samp>](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) [<samp>(e24cd)</samp>](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) [<samp>(8d460)</samp>](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) [<samp>(ba3d1)</samp>](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) [<samp>(481b1)</samp>](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) [<samp>(fbb14)</samp>](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) [<samp>(036de)</samp>](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) [<samp>(19fcd)</samp>](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) [<samp>(62c14)</samp>](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) [<samp>(ba81d)</samp>](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) [<samp>(1f118)</samp>](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) [<samp>(78bad)</samp>](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) [<samp>(29eeb)</samp>](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) [<samp>(0a287)</samp>](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) [<samp>(d9fda)</samp>](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) [<samp>(21942)</samp>](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) [<samp>(efce3)</samp>](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) [<samp>(c7da1)</samp>](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) [<samp>(c759a)</samp>](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) [<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8) - Add missing `import.meta.hot.send` mock - by [@​antfu](https://togithub.com/antfu) [<samp>(b1624)</samp>](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) [<samp>(a3393)</samp>](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) [<samp>(7b2c8)</samp>](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) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9pm on sunday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->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://developer.mend.io/github/ascorbic/unpic-img). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
bodinsamuel
referenced
this pull request
in specfy/stack-analyser
Jul 9, 2023
[![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/coverage-c8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-c8#readme) ([source](https://togithub.com/vitest-dev/vitest)) | [`0.30.1` -> `0.33.0`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-c8/0.30.1/0.33.0) | [![age](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.33.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.33.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.33.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vitest%2fcoverage-c8/0.33.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | | [vitest](https://togithub.com/vitest-dev/vitest) | [`0.30.1` -> `0.33.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.33.0) | [![age](https://badges.renovateapi.com/packages/npm/vitest/0.33.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.33.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/vitest/0.33.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.33.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest (@​vitest/coverage-c8)</summary> ### [`v0.33.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.33.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.4...v0.33.0) ##### 🚨 Breaking Changes - Revert default include patterns - by [@​so1ve](https://togithub.com/so1ve) [#​3729](https://togithub.com/vitest-dev/vitest/issues/3729) - `0.32.0` changed the default `include` globs to be compatible with Jest. After a discussion with the community, we are reverting this change because it turned out to be non-intuitive. ##### 🐞 Bug Fixes - Add missing JSDom living keys - by [@​DerZade](https://togithub.com/DerZade) in [https://github.com/vitest-dev/vitest/issues/3702](https://togithub.com/vitest-dev/vitest/issues/3702) [<samp>(83a86)</samp>](https://togithub.com/vitest-dev/vitest/commit/83a86a75) - **vite-node**: - Don't fail when importing Promise module - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(08192)</samp>](https://togithub.com/vitest-dev/vitest/commit/0819275a) - Allow importing node:test - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(db22c)</samp>](https://togithub.com/vitest-dev/vitest/commit/db22c677) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.4...v0.33.0) ### [`v0.32.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.3...v0.32.4) ##### 🐞 Bug Fixes - **browser**: Correctly optimize CJS dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3d090)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d0908e7) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.3...v0.32.4) ### [`v0.32.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.2...v0.32.3) ##### 🚀 Features - Add `concurrent` option to `sequence` config - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3604](https://togithub.com/vitest-dev/vitest/issues/3604) [<samp>(f427f)</samp>](https://togithub.com/vitest-dev/vitest/commit/f427f004) - Introduce global configuration for retry setting - by [@​imentu](https://togithub.com/imentu) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3598](https://togithub.com/vitest-dev/vitest/issues/3598) and [https://github.com/vitest-dev/vitest/issues/3603](https://togithub.com/vitest-dev/vitest/issues/3603) [<samp>(9a117)</samp>](https://togithub.com/vitest-dev/vitest/commit/9a117627) - Don't rely on util package in [@​vitest/utils](https://togithub.com/vitest/utils) - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3685](https://togithub.com/vitest-dev/vitest/issues/3685) [<samp>(f91da)</samp>](https://togithub.com/vitest-dev/vitest/commit/f91da484) - Support accessing other fixtures in fixture function - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3651](https://togithub.com/vitest-dev/vitest/issues/3651) [<samp>(1621c)</samp>](https://togithub.com/vitest-dev/vitest/commit/1621cc63) - Support use function/class as `bench` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3711](https://togithub.com/vitest-dev/vitest/issues/3711) [<samp>(a749a)</samp>](https://togithub.com/vitest-dev/vitest/commit/a749a6c0) - **reporters**: Show full test suite when testing 1 spec file at a time - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3543](https://togithub.com/vitest-dev/vitest/issues/3543) [<samp>(7531c)</samp>](https://togithub.com/vitest-dev/vitest/commit/7531c292) - **runner**: Support `test.extend` - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3554](https://togithub.com/vitest-dev/vitest/issues/3554) [<samp>(2db1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2db1a737) ##### 🐞 Bug Fixes - Remove "concordance" from dependencies list - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3597](https://togithub.com/vitest-dev/vitest/issues/3597) [<samp>(969dc)</samp>](https://togithub.com/vitest-dev/vitest/commit/969dcc14) - Show diff correctly - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3620](https://togithub.com/vitest-dev/vitest/issues/3620) [<samp>(73dd4)</samp>](https://togithub.com/vitest-dev/vitest/commit/73dd4ab5) - Util import - by [@​fubhy](https://togithub.com/fubhy) in [https://github.com/vitest-dev/vitest/issues/3621](https://togithub.com/vitest-dev/vitest/issues/3621) [<samp>(2fb4c)</samp>](https://togithub.com/vitest-dev/vitest/commit/2fb4ceff) - Compat with frozen Math - by [@​turadg](https://togithub.com/turadg) in [https://github.com/vitest-dev/vitest/issues/3527](https://togithub.com/vitest-dev/vitest/issues/3527) [<samp>(0db67)</samp>](https://togithub.com/vitest-dev/vitest/commit/0db67098) - `CTRL+C` to terminate run - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3642](https://togithub.com/vitest-dev/vitest/issues/3642) [<samp>(fa663)</samp>](https://togithub.com/vitest-dev/vitest/commit/fa6637d3) - Run mode stuck in TTY terminals - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3690](https://togithub.com/vitest-dev/vitest/issues/3690) [<samp>(141a8)</samp>](https://togithub.com/vitest-dev/vitest/commit/141a86ac) - Use first stack frame in json reporter - by [@​tim-smart](https://togithub.com/tim-smart) in [https://github.com/vitest-dev/vitest/issues/3645](https://togithub.com/vitest-dev/vitest/issues/3645) [<samp>(80ea7)</samp>](https://togithub.com/vitest-dev/vitest/commit/80ea7ef6) - Print actual number for `toBeCalledTimes` - by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/3696](https://togithub.com/vitest-dev/vitest/issues/3696) [<samp>(d3640)</samp>](https://togithub.com/vitest-dev/vitest/commit/d3640437) - **benchmark**: - Don't fail when running correct benchmarks - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3629](https://togithub.com/vitest-dev/vitest/issues/3629) [<samp>(edad9)</samp>](https://togithub.com/vitest-dev/vitest/commit/edad9b19) - **browser**: - Correctly print diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3627](https://togithub.com/vitest-dev/vitest/issues/3627) [<samp>(d756e)</samp>](https://togithub.com/vitest-dev/vitest/commit/d756ee24) - Esm injector doesn't replace class expressions - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3641](https://togithub.com/vitest-dev/vitest/issues/3641) [<samp>(5c0ac)</samp>](https://togithub.com/vitest-dev/vitest/commit/5c0ac4ad) - Transform superclass identifier - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3681](https://togithub.com/vitest-dev/vitest/issues/3681) [<samp>(a1e04)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1e043bd) - **coverage**: - `v8` to prevent crash on dynamic CJS files - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3657](https://togithub.com/vitest-dev/vitest/issues/3657) [<samp>(40f18)</samp>](https://togithub.com/vitest-dev/vitest/commit/40f18a07) - **runner**: - Make the default value of `retry` and `repeats` 0 - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3638](https://togithub.com/vitest-dev/vitest/issues/3638) [<samp>(6d146)</samp>](https://togithub.com/vitest-dev/vitest/commit/6d146d16) - **utils**: - Respect all flags in format function - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3695](https://togithub.com/vitest-dev/vitest/issues/3695) [<samp>(91e16)</samp>](https://togithub.com/vitest-dev/vitest/commit/91e1650e) - **watch**: - Cancel using `h` key - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3618](https://togithub.com/vitest-dev/vitest/issues/3618) [<samp>(60c36)</samp>](https://togithub.com/vitest-dev/vitest/commit/60c36faf) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.2...v0.32.3) ### [`v0.32.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ##### 🐞 Bug Fixes - **browser**: Don't fail on importing diff-sequences - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(00b0e)</samp>](https://togithub.com/vitest-dev/vitest/commit/00b0e6a3) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ### [`v0.32.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ##### 🚀 Features - Export `registerConsoleShortcuts` from `vitest/node` - by [@​deot](https://togithub.com/deot) in [https://github.com/vitest-dev/vitest/issues/3563](https://togithub.com/vitest-dev/vitest/issues/3563) [<samp>(bc49b)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc49bac7) - **expect**: Support `expect.unreachable` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3556](https://togithub.com/vitest-dev/vitest/issues/3556) [<samp>(8e385)</samp>](https://togithub.com/vitest-dev/vitest/commit/8e385bb0) - **runner**: `describe`/`test` name support anonymous function - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3562](https://togithub.com/vitest-dev/vitest/issues/3562) [<samp>(3d436)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d43638c) ##### 🐞 Bug Fixes - Avoid call stack recursion with large error (fix: [#​3060](https://togithub.com/vitest-dev/vitest/issues/3060)) - by [@​nathanmmiller](https://togithub.com/nathanmmiller) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3078](https://togithub.com/vitest-dev/vitest/issues/3078) and [https://github.com/vitest-dev/vitest/issues/3060](https://togithub.com/vitest-dev/vitest/issues/3060) [<samp>(02196)</samp>](https://togithub.com/vitest-dev/vitest/commit/02196f9d) - Automatically remove define related configuration - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3552](https://togithub.com/vitest-dev/vitest/issues/3552) [<samp>(368b8)</samp>](https://togithub.com/vitest-dev/vitest/commit/368b8259) - Import `performance` from `perf_hooks` - by [@​Max10240](https://togithub.com/Max10240) and **wangbaolong.wbl** in [https://github.com/vitest-dev/vitest/issues/3578](https://togithub.com/vitest-dev/vitest/issues/3578) and [https://github.com/vitest-dev/vitest/issues/3579](https://togithub.com/vitest-dev/vitest/issues/3579) [<samp>(24ec8)</samp>](https://togithub.com/vitest-dev/vitest/commit/24ec85a8) - Revert concordance diff, use jest's diff output - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3582](https://togithub.com/vitest-dev/vitest/issues/3582) [<samp>(9c7ea)</samp>](https://togithub.com/vitest-dev/vitest/commit/9c7ea382) - Typo in config suggestion - by [@​Krisell](https://togithub.com/Krisell) in [https://github.com/vitest-dev/vitest/issues/3583](https://togithub.com/vitest-dev/vitest/issues/3583) [<samp>(68985)</samp>](https://togithub.com/vitest-dev/vitest/commit/689855bb) - **browser**: - Change optimized deps to use `vitest` - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3580](https://togithub.com/vitest-dev/vitest/issues/3580) [<samp>(b4ac8)</samp>](https://togithub.com/vitest-dev/vitest/commit/b4ac88e9) - Access **vi_inject** only if it was injected - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3587](https://togithub.com/vitest-dev/vitest/issues/3587) [<samp>(d9e14)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9e1419a) - **mocker**: - Respect namespace import when hoisting vi.mock - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3547](https://togithub.com/vitest-dev/vitest/issues/3547) [<samp>(158c4)</samp>](https://togithub.com/vitest-dev/vitest/commit/158c4bb0) - **ui**: - Navigate to dashboard when re-running tests from coverage page - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3529](https://togithub.com/vitest-dev/vitest/issues/3529) [<samp>(bc283)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc283ae3) - **vite-node**: - Correctly resolve virtual modules - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3544](https://togithub.com/vitest-dev/vitest/issues/3544) [<samp>(0cbb0)</samp>](https://togithub.com/vitest-dev/vitest/commit/0cbb07b4) - Fix errors caused by commonjs export circular references - by [@​rxliuli](https://togithub.com/rxliuli) in [https://github.com/vitest-dev/vitest/issues/3570](https://togithub.com/vitest-dev/vitest/issues/3570) [<samp>(b097c)</samp>](https://togithub.com/vitest-dev/vitest/commit/b097cef8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ### [`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 - Remove `browser` from allowed pools inside `poolMatchGlob` config option. Please, use Vitest workspaces for running tests in the browser. - 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) [<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b) - The change should be minor: ```diff - declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} } ``` ##### 🚀 Features - 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) [<samp>(0c09a)</samp>](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.mock('./path/to/module.js', () => { return { originalMethod: mockedMethod } }) ``` - 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) [<samp>(7c8f0)</samp>](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) [<samp>(9bdb1)</samp>](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) [<samp>(730af)</samp>](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) [<samp>(e24cd)</samp>](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) [<samp>(8d460)</samp>](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) [<samp>(ba3d1)</samp>](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) [<samp>(481b1)</samp>](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) [<samp>(fbb14)</samp>](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) [<samp>(036de)</samp>](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) [<samp>(19fcd)</samp>](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) [<samp>(62c14)</samp>](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) [<samp>(ba81d)</samp>](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) [<samp>(1f118)</samp>](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) [<samp>(78bad)</samp>](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) [<samp>(29eeb)</samp>](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) [<samp>(0a287)</samp>](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) [<samp>(d9fda)</samp>](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) [<samp>(21942)</samp>](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) [<samp>(efce3)</samp>](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) [<samp>(c7da1)</samp>](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) [<samp>(c759a)</samp>](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) [<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8) - Add missing `import.meta.hot.send` mock - by [@​antfu](https://togithub.com/antfu) [<samp>(b1624)</samp>](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) [<samp>(a3393)</samp>](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) [<samp>(7b2c8)</samp>](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) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, 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. --- - [ ] <!-- rebase-check -->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://developer.mend.io/github/specfy/stack-analyser). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41LjMiLCJ1cGRhdGVkSW5WZXIiOiIzNi41LjMiLCJ0YXJnZXRCcmFuY2giOiJjaG9yZS9yZW5vdmF0ZUJhc2VCcmFuY2gifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com>
marcustisater-kivra
referenced
this pull request
in kivra/toybox
Aug 15, 2023
[![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.31.0` -> `0.34.1`](https://renovatebot.com/diffs/npm/vitest/0.31.0/0.34.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/0.34.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/0.34.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/0.31.0/0.34.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/0.31.0/0.34.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vitest-dev/vitest (vitest)</summary> ### [`v0.34.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.34.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.34.0...v0.34.1) ##### 🐞 Bug Fixes - Pass `--experimental-vm-worker-memory-limit` to `tinypool` - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3856](https://togithub.com/vitest-dev/vitest/issues/3856) [<samp>(3c67a)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c67a4cb) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.34.0...v0.34.1) ### [`v0.34.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.34.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.33.0...v0.34.0) ##### 🚨 Breaking Changes - Transform mode affects only test files, not regular files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3491](https://togithub.com/vitest-dev/vitest/issues/3491) [<samp>(9608b)</samp>](https://togithub.com/vitest-dev/vitest/commit/9608bf72) - `transformMode` is now moved to `server.transformMode`. This option is highly discouraged to use. If you need to change the transform mode, use the new option `testTransformMode` instead to control the mode based on the running test, not the current file path. By default, tests with `jsdom` or `happy-dom` use `web` transform mode, and tests using `node` or `edge` environment use `ssr` mode. If you have a custom environment, it should provide `transformMode` property. - Disable `coverage.reportOnFailure` by default - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3615](https://togithub.com/vitest-dev/vitest/issues/3615) [<samp>(0c6f6)</samp>](https://togithub.com/vitest-dev/vitest/commit/0c6f624f) - Remove `@vitest/coverage-c8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3614](https://togithub.com/vitest-dev/vitest/issues/3614) [<samp>(a90d6)</samp>](https://togithub.com/vitest-dev/vitest/commit/a90d64fe) - `@vitest/coverage-c8` is no longer supported. Please, use `@vitest/coverage-v8` instead. - Support running tests using VM context - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3203](https://togithub.com/vitest-dev/vitest/issues/3203) [<samp>(b0929)</samp>](https://togithub.com/vitest-dev/vitest/commit/b0929852) - To address speed issues in some applications, Vitest now provides `experimentalVmThreads` pool to run your tests using VM Sandboxes environment. Make sure you understand [all pitfalls](https://vitest.dev/config/#experimentalvmthreads) of this pool before opening an issue. - Introduce `server` option - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3725](https://togithub.com/vitest-dev/vitest/issues/3725) [<samp>(dc4fa)</samp>](https://togithub.com/vitest-dev/vitest/commit/dc4faf64) - Most of `deps.` options are now moved to `server.deps` with a deprecation warning. Please, consider using `deps.optimizer` instead of `deps.inline`/`deps.external`. Ideally, we would like to move away from using `server.deps.inline` altogether. - **vite-node**: Make CLI arguments parsing behavior consistent with node/tsx/ts-node - by [@​rxliuli](https://togithub.com/rxliuli) in [https://github.com/vitest-dev/vitest/issues/3574](https://togithub.com/vitest-dev/vitest/issues/3574) [<samp>(1cd4e)</samp>](https://togithub.com/vitest-dev/vitest/commit/1cd4eb0f) - You now have to provide CLI arguments before the entry point. For example, instead of `vite-node index.ts --watch`, you now have to do `vite-node --watch index.ts`. - Add preact example, remove optimizer experimental status, enable by default - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​eryue0220](https://togithub.com/eryue0220) in [https://github.com/vitest-dev/vitest/issues/3854](https://togithub.com/vitest-dev/vitest/issues/3854) [<samp>(4b946)</samp>](https://togithub.com/vitest-dev/vitest/commit/4b946ca9) - `deps.optimizer` is now enabled by default. This means that Vitest will bundle specified dependencies before running your tests. This field inherits options from `optimizeDeps` and `ssr.optimizeDeps` which are populated by other plugins (like, Svelte). ##### 🚀 Features - Support `describe.sequential` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3771](https://togithub.com/vitest-dev/vitest/issues/3771) [<samp>(86934)</samp>](https://togithub.com/vitest-dev/vitest/commit/8693449b) - Support config junit reporter className with env - by [@​InfiniteXyy](https://togithub.com/InfiniteXyy) in [https://github.com/vitest-dev/vitest/issues/3808](https://togithub.com/vitest-dev/vitest/issues/3808) [<samp>(e8bc4)</samp>](https://togithub.com/vitest-dev/vitest/commit/e8bc46b6) - Running vitest with `--related --watch` reruns non-affected tests if they were changed during a run - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3844](https://togithub.com/vitest-dev/vitest/issues/3844) [<samp>(c9aea)</samp>](https://togithub.com/vitest-dev/vitest/commit/c9aeac4c) ##### 🐞 Bug Fixes - Isolate workers between envs and workspaces - by [@​AriPerkkio](https://togithub.com/AriPerkkio) [<samp>(ed4e0)</samp>](https://togithub.com/vitest-dev/vitest/commit/ed4e0424) - Modify condition - by [@​btea](https://togithub.com/btea) [<samp>(a78e6)</samp>](https://togithub.com/vitest-dev/vitest/commit/a78e6bd0) - Module Graph view is blocking the Console view - by [@​g4rry420](https://togithub.com/g4rry420) [<samp>(3b5f9)</samp>](https://togithub.com/vitest-dev/vitest/commit/3b5f96bc) - Port the latest `defineConfig` type from vite - by [@​sodatea](https://togithub.com/sodatea) in [https://github.com/vitest-dev/vitest/issues/3804](https://togithub.com/vitest-dev/vitest/issues/3804) [<samp>(9c8e3)</samp>](https://togithub.com/vitest-dev/vitest/commit/9c8e3083) - Don't overwrite Node.js URL global - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3828](https://togithub.com/vitest-dev/vitest/issues/3828) [<samp>(cdab4)</samp>](https://togithub.com/vitest-dev/vitest/commit/cdab4651) - ForceRerunTriggers correctly triggers a rerun - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3829](https://togithub.com/vitest-dev/vitest/issues/3829) [<samp>(17988)</samp>](https://togithub.com/vitest-dev/vitest/commit/17988e51) - **browser**: - Don't inline magic-string and estree-walker - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3726](https://togithub.com/vitest-dev/vitest/issues/3726) [<samp>(ee937)</samp>](https://togithub.com/vitest-dev/vitest/commit/ee93762a) - Multi-suite coverage - by [@​elby22](https://togithub.com/elby22) in [https://github.com/vitest-dev/vitest/issues/3806](https://togithub.com/vitest-dev/vitest/issues/3806) [<samp>(5de9a)</samp>](https://togithub.com/vitest-dev/vitest/commit/5de9af26) - **core**: - DataView comparison does not work in `toStrictEqual` - by [@​Dunqing](https://togithub.com/Dunqing) [<samp>(52aef)</samp>](https://togithub.com/vitest-dev/vitest/commit/52aef92e) - **coverage**: - V8 provider to pick source maps without url query params - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3784](https://togithub.com/vitest-dev/vitest/issues/3784) [<samp>(280e6)</samp>](https://togithub.com/vitest-dev/vitest/commit/280e6745) - Update `istanbul-lib-instrument` to v6 to fix vulnerable dependency - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3814](https://togithub.com/vitest-dev/vitest/issues/3814) [<samp>(f3bd9)</samp>](https://togithub.com/vitest-dev/vitest/commit/f3bd9102) - Exclude vite virtual modules by default - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3794](https://togithub.com/vitest-dev/vitest/issues/3794) [<samp>(3c851)</samp>](https://togithub.com/vitest-dev/vitest/commit/3c851872) - **node**: - Guard error info - by [@​btea](https://togithub.com/btea) [<samp>(88b39)</samp>](https://togithub.com/vitest-dev/vitest/commit/88b39758) - **vite-node**: - Always treat node_modules as modulesDirectory - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3830](https://togithub.com/vitest-dev/vitest/issues/3830) [<samp>(51ab8)</samp>](https://togithub.com/vitest-dev/vitest/commit/51ab8d6c) - Normalize drive letter to keep the same reference to a module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3836](https://togithub.com/vitest-dev/vitest/issues/3836) [<samp>(45521)</samp>](https://togithub.com/vitest-dev/vitest/commit/45521859) - Correctly resolve hmr filepath - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3834](https://togithub.com/vitest-dev/vitest/issues/3834) [<samp>(711a6)</samp>](https://togithub.com/vitest-dev/vitest/commit/711a6249) - **watch**: - Clear screen on all terminals - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3661](https://togithub.com/vitest-dev/vitest/issues/3661) [<samp>(8bd26)</samp>](https://togithub.com/vitest-dev/vitest/commit/8bd26b01) ##### 🏎 Performance - Deprecate deps.registerNodeLoader - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(7f45b)</samp>](https://togithub.com/vitest-dev/vitest/commit/7f45bf2d) - This option was introduced to support aliasing inside external packages. Please, use `deps.optimizer.web` instead. If you test Node.js applications, consider adding external packages to `server.deps.inline`. ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.33.0...v0.34.0) ### [`v0.33.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.33.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.4...v0.33.0) ##### 🚨 Breaking Changes - Revert default include patterns - by [@​so1ve](https://togithub.com/so1ve) [#​3729](https://togithub.com/vitest-dev/vitest/issues/3729) - `0.32.0` changed the default `include` globs to be compatible with Jest. After a discussion with the community, we are reverting this change because it turned out to be non-intuitive. ##### 🐞 Bug Fixes - Add missing JSDom living keys - by [@​DerZade](https://togithub.com/DerZade) in [https://github.com/vitest-dev/vitest/issues/3702](https://togithub.com/vitest-dev/vitest/issues/3702) [<samp>(83a86)</samp>](https://togithub.com/vitest-dev/vitest/commit/83a86a75) - **vite-node**: - Don't fail when importing Promise module - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(08192)</samp>](https://togithub.com/vitest-dev/vitest/commit/0819275a) - Allow importing node:test - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(db22c)</samp>](https://togithub.com/vitest-dev/vitest/commit/db22c677) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.4...v0.33.0) ### [`v0.32.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.3...v0.32.4) ##### 🐞 Bug Fixes - **browser**: Correctly optimize CJS dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(3d090)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d0908e7) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.3...v0.32.4) ### [`v0.32.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.2...v0.32.3) ##### 🚀 Features - Add `concurrent` option to `sequence` config - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3604](https://togithub.com/vitest-dev/vitest/issues/3604) [<samp>(f427f)</samp>](https://togithub.com/vitest-dev/vitest/commit/f427f004) - Introduce global configuration for retry setting - by [@​imentu](https://togithub.com/imentu) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3598](https://togithub.com/vitest-dev/vitest/issues/3598) and [https://github.com/vitest-dev/vitest/issues/3603](https://togithub.com/vitest-dev/vitest/issues/3603) [<samp>(9a117)</samp>](https://togithub.com/vitest-dev/vitest/commit/9a117627) - Don't rely on util package in [@​vitest/utils](https://togithub.com/vitest/utils) - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3685](https://togithub.com/vitest-dev/vitest/issues/3685) [<samp>(f91da)</samp>](https://togithub.com/vitest-dev/vitest/commit/f91da484) - Support accessing other fixtures in fixture function - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3651](https://togithub.com/vitest-dev/vitest/issues/3651) [<samp>(1621c)</samp>](https://togithub.com/vitest-dev/vitest/commit/1621cc63) - Support use function/class as `bench` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3711](https://togithub.com/vitest-dev/vitest/issues/3711) [<samp>(a749a)</samp>](https://togithub.com/vitest-dev/vitest/commit/a749a6c0) - **reporters**: Show full test suite when testing 1 spec file at a time - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3543](https://togithub.com/vitest-dev/vitest/issues/3543) [<samp>(7531c)</samp>](https://togithub.com/vitest-dev/vitest/commit/7531c292) - **runner**: Support `test.extend` - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3554](https://togithub.com/vitest-dev/vitest/issues/3554) [<samp>(2db1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2db1a737) ##### 🐞 Bug Fixes - Remove "concordance" from dependencies list - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3597](https://togithub.com/vitest-dev/vitest/issues/3597) [<samp>(969dc)</samp>](https://togithub.com/vitest-dev/vitest/commit/969dcc14) - Show diff correctly - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3620](https://togithub.com/vitest-dev/vitest/issues/3620) [<samp>(73dd4)</samp>](https://togithub.com/vitest-dev/vitest/commit/73dd4ab5) - Util import - by [@​fubhy](https://togithub.com/fubhy) in [https://github.com/vitest-dev/vitest/issues/3621](https://togithub.com/vitest-dev/vitest/issues/3621) [<samp>(2fb4c)</samp>](https://togithub.com/vitest-dev/vitest/commit/2fb4ceff) - Compat with frozen Math - by [@​turadg](https://togithub.com/turadg) in [https://github.com/vitest-dev/vitest/issues/3527](https://togithub.com/vitest-dev/vitest/issues/3527) [<samp>(0db67)</samp>](https://togithub.com/vitest-dev/vitest/commit/0db67098) - `CTRL+C` to terminate run - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3642](https://togithub.com/vitest-dev/vitest/issues/3642) [<samp>(fa663)</samp>](https://togithub.com/vitest-dev/vitest/commit/fa6637d3) - Run mode stuck in TTY terminals - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3690](https://togithub.com/vitest-dev/vitest/issues/3690) [<samp>(141a8)</samp>](https://togithub.com/vitest-dev/vitest/commit/141a86ac) - Use first stack frame in json reporter - by [@​tim-smart](https://togithub.com/tim-smart) in [https://github.com/vitest-dev/vitest/issues/3645](https://togithub.com/vitest-dev/vitest/issues/3645) [<samp>(80ea7)</samp>](https://togithub.com/vitest-dev/vitest/commit/80ea7ef6) - Print actual number for `toBeCalledTimes` - by [@​antfu](https://togithub.com/antfu) in [https://github.com/vitest-dev/vitest/issues/3696](https://togithub.com/vitest-dev/vitest/issues/3696) [<samp>(d3640)</samp>](https://togithub.com/vitest-dev/vitest/commit/d3640437) - **benchmark**: - Don't fail when running correct benchmarks - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3629](https://togithub.com/vitest-dev/vitest/issues/3629) [<samp>(edad9)</samp>](https://togithub.com/vitest-dev/vitest/commit/edad9b19) - **browser**: - Correctly print diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3627](https://togithub.com/vitest-dev/vitest/issues/3627) [<samp>(d756e)</samp>](https://togithub.com/vitest-dev/vitest/commit/d756ee24) - Esm injector doesn't replace class expressions - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3641](https://togithub.com/vitest-dev/vitest/issues/3641) [<samp>(5c0ac)</samp>](https://togithub.com/vitest-dev/vitest/commit/5c0ac4ad) - Transform superclass identifier - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3681](https://togithub.com/vitest-dev/vitest/issues/3681) [<samp>(a1e04)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1e043bd) - **coverage**: - `v8` to prevent crash on dynamic CJS files - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3657](https://togithub.com/vitest-dev/vitest/issues/3657) [<samp>(40f18)</samp>](https://togithub.com/vitest-dev/vitest/commit/40f18a07) - **runner**: - Make the default value of `retry` and `repeats` 0 - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3638](https://togithub.com/vitest-dev/vitest/issues/3638) [<samp>(6d146)</samp>](https://togithub.com/vitest-dev/vitest/commit/6d146d16) - **utils**: - Respect all flags in format function - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3695](https://togithub.com/vitest-dev/vitest/issues/3695) [<samp>(91e16)</samp>](https://togithub.com/vitest-dev/vitest/commit/91e1650e) - **watch**: - Cancel using `h` key - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3618](https://togithub.com/vitest-dev/vitest/issues/3618) [<samp>(60c36)</samp>](https://togithub.com/vitest-dev/vitest/commit/60c36faf) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.2...v0.32.3) ### [`v0.32.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ##### 🐞 Bug Fixes - **browser**: Don't fail on importing diff-sequences - by [@​sheremet-va](https://togithub.com/sheremet-va) [<samp>(00b0e)</samp>](https://togithub.com/vitest-dev/vitest/commit/00b0e6a3) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2) ### [`v0.32.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ##### 🚀 Features - Export `registerConsoleShortcuts` from `vitest/node` - by [@​deot](https://togithub.com/deot) in [https://github.com/vitest-dev/vitest/issues/3563](https://togithub.com/vitest-dev/vitest/issues/3563) [<samp>(bc49b)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc49bac7) - **expect**: Support `expect.unreachable` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3556](https://togithub.com/vitest-dev/vitest/issues/3556) [<samp>(8e385)</samp>](https://togithub.com/vitest-dev/vitest/commit/8e385bb0) - **runner**: `describe`/`test` name support anonymous function - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3562](https://togithub.com/vitest-dev/vitest/issues/3562) [<samp>(3d436)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d43638c) ##### 🐞 Bug Fixes - Avoid call stack recursion with large error (fix: [#​3060](https://togithub.com/vitest-dev/vitest/issues/3060)) - by [@​nathanmmiller](https://togithub.com/nathanmmiller) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3078](https://togithub.com/vitest-dev/vitest/issues/3078) and [https://github.com/vitest-dev/vitest/issues/3060](https://togithub.com/vitest-dev/vitest/issues/3060) [<samp>(02196)</samp>](https://togithub.com/vitest-dev/vitest/commit/02196f9d) - Automatically remove define related configuration - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3552](https://togithub.com/vitest-dev/vitest/issues/3552) [<samp>(368b8)</samp>](https://togithub.com/vitest-dev/vitest/commit/368b8259) - Import `performance` from `perf_hooks` - by [@​Max10240](https://togithub.com/Max10240) and **wangbaolong.wbl** in [https://github.com/vitest-dev/vitest/issues/3578](https://togithub.com/vitest-dev/vitest/issues/3578) and [https://github.com/vitest-dev/vitest/issues/3579](https://togithub.com/vitest-dev/vitest/issues/3579) [<samp>(24ec8)</samp>](https://togithub.com/vitest-dev/vitest/commit/24ec85a8) - Revert concordance diff, use jest's diff output - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3582](https://togithub.com/vitest-dev/vitest/issues/3582) [<samp>(9c7ea)</samp>](https://togithub.com/vitest-dev/vitest/commit/9c7ea382) - Typo in config suggestion - by [@​Krisell](https://togithub.com/Krisell) in [https://github.com/vitest-dev/vitest/issues/3583](https://togithub.com/vitest-dev/vitest/issues/3583) [<samp>(68985)</samp>](https://togithub.com/vitest-dev/vitest/commit/689855bb) - **browser**: - Change optimized deps to use `vitest` - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3580](https://togithub.com/vitest-dev/vitest/issues/3580) [<samp>(b4ac8)</samp>](https://togithub.com/vitest-dev/vitest/commit/b4ac88e9) - Access **vi_inject** only if it was injected - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3587](https://togithub.com/vitest-dev/vitest/issues/3587) [<samp>(d9e14)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9e1419a) - **mocker**: - Respect namespace import when hoisting vi.mock - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3547](https://togithub.com/vitest-dev/vitest/issues/3547) [<samp>(158c4)</samp>](https://togithub.com/vitest-dev/vitest/commit/158c4bb0) - **ui**: - Navigate to dashboard when re-running tests from coverage page - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3529](https://togithub.com/vitest-dev/vitest/issues/3529) [<samp>(bc283)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc283ae3) - **vite-node**: - Correctly resolve virtual modules - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3544](https://togithub.com/vitest-dev/vitest/issues/3544) [<samp>(0cbb0)</samp>](https://togithub.com/vitest-dev/vitest/commit/0cbb07b4) - Fix errors caused by commonjs export circular references - by [@​rxliuli](https://togithub.com/rxliuli) in [https://github.com/vitest-dev/vitest/issues/3570](https://togithub.com/vitest-dev/vitest/issues/3570) [<samp>(b097c)</samp>](https://togithub.com/vitest-dev/vitest/commit/b097cef8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1) ### [`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ##### 🚨 Breaking Changes - Throw an error, if the module cannot be resolved - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307) [<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c) - Vitest used to fall back to the original import when it could not resolve it to the file path or the virtual module. This leads to hard-to-find module graph mismatches if you had incorrect alias or relied on relative imports to be resolved to the project root (which is usual behavior in TypeScript) because the code accidentally "worked". With this release, Vitest will now throw an error if it cannot resolve the module - there are possible edge cases that are not covered yet, so if you have any problems with this, please open a separate issue with reproduction. - Improve globs - by [@​nickmccurdy](https://togithub.com/nickmccurdy) in [https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392) [<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7) - Vitest now has glob patterns similar to Jest for better compatibility. It's possible that some files will be considered test files when previously they were not. For example, Vitest now considers `test.js` to be a test file. Also any file in `__tests__` is now considered to be a test, not just files with `test` or `spec` suffix. - Add `@vitest/coverage-v8` package - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339) [<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1) - Vitest now uses v8 code coverage directly for better performance. `@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package for coverage output. It will not be updated anymore, and Vitest will fail in the next version if the user has `c8` as their coverage provider. Please, install the new `@vitest/coverage-v8` package if you previously used `@vitest/coverage-c8`. - **mocker**: Don't restore mock to the original if the module is automocked - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518) [<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14) - `spy.mockRestore` on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does. ##### 🚀 Features - Support ssr optimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490) [<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0) - Image type add apng - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498) [<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151) - **expect**: Support `expect.soft` - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507) [<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada) - **runner**: Support using function/class as `describe`/`test` name - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497) [<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890) ##### 🐞 Bug Fixes - The cli option is passed to coverage.exclude - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506) [<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe) - **optimizer**: Always respect optimizeDeps even if include/exclude is overridden - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488) [<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0) - **runner**: Ensure Vitest is deduped - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489) [<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab) - **ui**: Don't cache coverage assets - by [@​userquin](https://togithub.com/userquin) in [https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508) [<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6) - **vite-node**: Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480) [<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d) - **watch**: Junit reporter fails to re-generate report - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496) [<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0) ### [`v0.31.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.4) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ##### 🚀 Features - Enable experimentalOptimizer - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3413](https://togithub.com/vitest-dev/vitest/issues/3413) [<samp>(5a894)</samp>](https://togithub.com/vitest-dev/vitest/commit/5a894aa2) ##### 🐞 Bug Fixes - **vite-node**: Deps.inline doesn't work - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3485](https://togithub.com/vitest-dev/vitest/issues/3485) [<samp>(be930)</samp>](https://togithub.com/vitest-dev/vitest/commit/be93032f) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4) ### [`v0.31.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ##### 🚀 Features - Support `VITE_NODE_DEPS_MODULE_DIRECTORIES` from .npmrc - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3471](https://togithub.com/vitest-dev/vitest/issues/3471) [<samp>(393bf)</samp>](https://togithub.com/vitest-dev/vitest/commit/393bf60c) ##### 🐞 Bug Fixes - **logger**: Print unhandled errors before summary - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3474](https://togithub.com/vitest-dev/vitest/issues/3474) [<samp>(4c9a7)</samp>](https://togithub.com/vitest-dev/vitest/commit/4c9a7d58) - **runner**: Suite options do not propagate to nested suites (fix: [#​3467](https://togithub.com/vitest-dev/vitest/issues/3467)) - by [@​xsjcTony](https://togithub.com/xsjcTony) in [https://github.com/vitest-dev/vitest/issues/3473](https://togithub.com/vitest-dev/vitest/issues/3473) and [https://github.com/vitest-dev/vitest/issues/3467](https://togithub.com/vitest-dev/vitest/issues/3467) [<samp>(9fb9d)</samp>](https://togithub.com/vitest-dev/vitest/commit/9fb9dacb) - **vite-node**: Clear importers when invalidating module - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3475](https://togithub.com/vitest-dev/vitest/issues/3475) [<samp>(add29)</samp>](https://togithub.com/vitest-dev/vitest/commit/add29c86) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.2...v0.31.3) ### [`v0.31.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ##### 🚀 Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` - by [@​fenghan34](https://togithub.com/fenghan34) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3360](https://togithub.com/vitest-dev/vitest/issues/3360) [<samp>(7c2f7)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c2f7088) - Pass down meta information to Node.js process - by [@​sheremet-va](https://togithub.com/sheremet-va) and [@​dammy001](https://togithub.com/dammy001) in [https://github.com/vitest-dev/vitest/issues/3449](https://togithub.com/vitest-dev/vitest/issues/3449) [<samp>(e39ad)</samp>](https://togithub.com/vitest-dev/vitest/commit/e39adea8) - **coverage**: Add `reportOnFailure` option - by [@​AriPerkkio](https://togithub.com/AriPerkkio) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3453](https://togithub.com/vitest-dev/vitest/issues/3453) [<samp>(1988f)</samp>](https://togithub.com/vitest-dev/vitest/commit/1988fcb4) - **dev**: Add moduleDirectories option to the vitest config - by [@​fooddilsn](https://togithub.com/fooddilsn) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3337](https://togithub.com/vitest-dev/vitest/issues/3337) [<samp>(b3602)</samp>](https://togithub.com/vitest-dev/vitest/commit/b3602bcc) ##### 🐞 Bug Fixes - Don't print empty diff - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3437](https://togithub.com/vitest-dev/vitest/issues/3437) [<samp>(32b53)</samp>](https://togithub.com/vitest-dev/vitest/commit/32b5361f) - Don't restore methods in automocked dependencies - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3438](https://togithub.com/vitest-dev/vitest/issues/3438) [<samp>(d1afd)</samp>](https://togithub.com/vitest-dev/vitest/commit/d1afd262) - Dot reporter scrollback buffer spam - by [@​gtm-nayan](https://togithub.com/gtm-nayan) in [https://github.com/vitest-dev/vitest/issues/3415](https://togithub.com/vitest-dev/vitest/issues/3415) [<samp>(e6792)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6792a94) - Gracefully exit when first `SIGINT` is received - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3407](https://togithub.com/vitest-dev/vitest/issues/3407) [<samp>(a2cc2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a2cc2b38) - `rejects` & `resolves` breaks with thenable objects - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3456](https://togithub.com/vitest-dev/vitest/issues/3456) [<samp>(4e996)</samp>](https://togithub.com/vitest-dev/vitest/commit/4e996ae5) - Prevent `birpc` timeouts when `Math.random` mock is not restored - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3460](https://togithub.com/vitest-dev/vitest/issues/3460) [<samp>(cd5d5)</samp>](https://togithub.com/vitest-dev/vitest/commit/cd5d58b7) - Assertion diff message now handle non writable property correctly - by [@​PCreations](https://togithub.com/PCreations) in [https://github.com/vitest-dev/vitest/issues/3422](https://togithub.com/vitest-dev/vitest/issues/3422) [<samp>(f75ab)</samp>](https://togithub.com/vitest-dev/vitest/commit/f75ab650) - Extend logging of process timeout errors - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3452](https://togithub.com/vitest-dev/vitest/issues/3452) [<samp>(42643)</samp>](https://togithub.com/vitest-dev/vitest/commit/42643904) - Support requiring files with `less` extension - by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/vitest-dev/vitest/issues/3465](https://togithub.com/vitest-dev/vitest/issues/3465) [<samp>(4d045)</samp>](https://togithub.com/vitest-dev/vitest/commit/4d045695) - **cli**: - Improve colors used when erroring - by [@​ghiscoding](https://togithub.com/ghiscoding) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3349](https://togithub.com/vitest-dev/vitest/issues/3349) [<samp>(16681)</samp>](https://togithub.com/vitest-dev/vitest/commit/16681791) - **runner**: - Suite timeout does not take effect - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3455](https://togithub.com/vitest-dev/vitest/issues/3455) [<samp>(82547)</samp>](https://togithub.com/vitest-dev/vitest/commit/82547376) - **spy**: - Don't print received calls if there are no calls - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3405](https://togithub.com/vitest-dev/vitest/issues/3405) [<samp>(41e11)</samp>](https://togithub.com/vitest-dev/vitest/commit/41e11dad) - **typecheck**: - Show tsc errors not related to test files - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3441](https://togithub.com/vitest-dev/vitest/issues/3441) [<samp>(a1da5)</samp>](https://togithub.com/vitest-dev/vitest/commit/a1da5714) - **types**: - Fix `PartialMock` with async TReturns - by [@​ghry5](https://togithub.com/ghry5) in [https://github.com/vitest-dev/vitest/issues/3462](https://togithub.com/vitest-dev/vitest/issues/3462) [<samp>(b664d)</samp>](https://togithub.com/vitest-dev/vitest/commit/b664d42c) - **vite-node**: - Circular import stuck - by [@​Dunqing](https://togithub.com/Dunqing) in [https://github.com/vitest-dev/vitest/issues/3418](https://togithub.com/vitest-dev/vitest/issues/3418) [<samp>(632ee)</samp>](https://togithub.com/vitest-dev/vitest/commit/632eef40) - Coerce to string in import(dep) - by [@​jcbhmr](https://togithub.com/jcbhmr) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3430](https://togithub.com/vitest-dev/vitest/issues/3430) [<samp>(b72eb)</samp>](https://togithub.com/vitest-dev/vitest/commit/b72ebdb9) - Don't remove sourcemap string in source code - by [@​rxliuli](https://togithub.com/rxliuli) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2918](https://togithub.com/vitest-dev/vitest/issues/2918) and [https://github.com/vitest-dev/vitest/issues/3379](https://togithub.com/vitest-dev/vitest/issues/3379) [<samp>(02dc9)</samp>](https://togithub.com/vitest-dev/vitest/commit/02dc9ea7) - Don't externalize "dist" by default - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3446](https://togithub.com/vitest-dev/vitest/issues/3446) [<samp>(306b2)</samp>](https://togithub.com/vitest-dev/vitest/commit/306b2337) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2) ### [`v0.31.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) ##### 🚀 Features - **watch**: Press `r` should rerun current pattern tests - by [@​Dunqing](https://togithub.com/Dunqing) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3305](https://togithub.com/vitest-dev/vitest/issues/3305) [<samp>(69d27)</samp>](https://togithub.com/vitest-dev/vitest/commit/69d27117) ##### 🐞 Bug Fixes - Make sure thrown error is an object - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3298](https://togithub.com/vitest-dev/vitest/issues/3298) [<samp>(a93be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3303](https://togithub.com/vitest-dev/vitest/issues/3303) [<samp>(5382e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3301](https://togithub.com/vitest-dev/vitest/issues/3301) [<samp>(708b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report - by [@​mzanelee](https://togithub.com/mzanelee) and **Michael Lee** in [https://github.com/vitest-dev/vitest/issues/3333](https://togithub.com/vitest-dev/vitest/issues/3333) [<samp>(5bf7e)</samp>](https://togithub.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3341](https://togithub.com/vitest-dev/vitest/issues/3341) [<samp>(2aff8)</samp>](https://togithub.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly - by [@​btea](https://togithub.com/btea) in [https://github.com/vitest-dev/vitest/issues/3314](https://togithub.com/vitest-dev/vitest/issues/3314) [<samp>(a5b3d)</samp>](https://togithub.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3353](https://togithub.com/vitest-dev/vitest/issues/3353) [<samp>(324a9)</samp>](https://togithub.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3385](https://togithub.com/vitest-dev/vitest/issues/3385) [<samp>(c44d9)</samp>](https://togithub.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses - by [@​pacexy](https://togithub.com/pacexy) in [https://github.com/vitest-dev/vitest/issues/3370](https://togithub.com/vitest-dev/vitest/issues/3370) and [https://github.com/vitest-dev/vitest/issues/3371](https://togithub.com/vitest-dev/vitest/issues/3371) [<samp>(dcf13)</samp>](https://togithub.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3386](https://togithub.com/vitest-dev/vitest/issues/3386) [<samp>(2cb1a)</samp>](https://togithub.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats - by [@​fenghan34](https://togithub.com/fenghan34) in [https://github.com/vitest-dev/vitest/issues/3369](https://togithub.com/vitest-dev/vitest/issues/3369) [<samp>(fb8fc)</samp>](https://togithub.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3390](https://togithub.com/vitest-dev/vitest/issues/3390) [<samp>(b354b)</samp>](https://togithub.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3389](https://togithub.com/vitest-dev/vitest/issues/3389) [<samp>(6501d)</samp>](https://togithub.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3302](https://togithub.com/vitest-dev/vitest/issues/3302) [<samp>(93fbd)</samp>](https://togithub.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/3331](https://togithub.com/vitest-dev/vitest/issues/3331) [<samp>(ddbba)</samp>](https://togithub.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path - by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/3342](https://togithub.com/vitest-dev/vitest/issues/3342) [<samp>(c53ae)</samp>](https://togithub.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise - by [@​danielroe](https://togithub.com/danielroe) in [https://github.com/vitest-dev/vitest/issues/3312](https://togithub.com/vitest-dev/vitest/issues/3312) [<samp>(9836c)</samp>](https://togithub.com/vitest-dev/vitest/commit/9836ccb4) ##### [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->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://developer.mend.io/github/kivra/toybox). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNy4xIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marcus Tisäter <77273035+marcustisater-kivra@users.noreply.github.com>
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #3376