448.md (14815B)
1 # PR #448 Bump vitest from 0.27.3 to 0.32.0 2 3 - **Status:** closed 4 - **Author:** @dependabot[bot] 5 - **Created:** 2023-06-07T09:06:12Z 6 - **Branch:** dependabot/npm_and_yarn/vitest-0.32.0 → main 7 - **Closed:** 2023-06-19T09:09:22Z 8 - **Labels:** dependencies, javascript 9 - **Assignees:** @MTRNord 10 - **Reviewers:** @MTRNord 11 - **Diff:** [448.diff](./448.diff) 12 13 --- 14 15 Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.27.3 to 0.32.0. 16 <details> 17 <summary>Release notes</summary> 18 <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> 19 <blockquote> 20 <h2>v0.32.0</h2> 21 <h3> 🚨 Breaking Changes</h3> 22 <ul> 23 <li>Throw an error, if the module cannot be resolved - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3307">vitest-dev/vitest#3307</a> <a href="https://github.com/vitest-dev/vitest/commit/1ad63b0c"><!-- raw HTML omitted -->(1ad63)<!-- raw HTML omitted --></a> 24 <ul> 25 <li>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.</li> 26 </ul> 27 </li> 28 <li>Improve globs - by <a href="https://github.com/nickmccurdy"><code>@nickmccurdy</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3392">vitest-dev/vitest#3392</a> <a href="https://github.com/vitest-dev/vitest/commit/19ecc6c7"><!-- raw HTML omitted -->(19ecc)<!-- raw HTML omitted --></a> 29 <ul> 30 <li>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 <code>test.js</code> to be a test file. Also any file in <code>__tests__</code> is now considered to be a test, not just files with <code>test</code> or <code>spec</code> suffix.</li> 31 </ul> 32 </li> 33 <li>Add <code>@vitest/coverage-v8</code> package - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3339">vitest-dev/vitest#3339</a> <a href="https://github.com/vitest-dev/vitest/commit/821126f1"><!-- raw HTML omitted -->(82112)<!-- raw HTML omitted --></a> 34 <ul> 35 <li>Vitest now uses v8 code coverage directly for better performance. <code>@vitest/coverage-c8</code> 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 <code>c8</code> as their coverage provider. Please, install the new <code>@vitest/coverage-v8</code> package if you previously used <code>@vitest/coverage-c8</code>.</li> 36 </ul> 37 </li> 38 <li><strong>mocker</strong>: Don't restore mock to the original if the module is automocked - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3518">vitest-dev/vitest#3518</a> <a href="https://github.com/vitest-dev/vitest/commit/c1004e14"><!-- raw HTML omitted -->(c1004)<!-- raw HTML omitted --></a> 39 <ul> 40 <li><code>spy.mockRestore</code> on auto-mocked named exports will no longer restore their implementation to the actual function. This behavior better matches what Jest does.</li> 41 </ul> 42 </li> 43 </ul> 44 <h3> 🚀 Features</h3> 45 <ul> 46 <li>Support ssr optimizer - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3490">vitest-dev/vitest#3490</a> <a href="https://github.com/vitest-dev/vitest/commit/898422b0"><!-- raw HTML omitted -->(89842)<!-- raw HTML omitted --></a></li> 47 <li>Image type add apng - by <a href="https://github.com/btea"><code>@btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3498">vitest-dev/vitest#3498</a> <a href="https://github.com/vitest-dev/vitest/commit/a53c2151"><!-- raw HTML omitted -->(a53c2)<!-- raw HTML omitted --></a></li> 48 <li><strong>expect</strong>: Support <code>expect.soft</code> - by <a href="https://github.com/Dunqing"><code>@Dunqing</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3507">vitest-dev/vitest#3507</a> <a href="https://github.com/vitest-dev/vitest/commit/7c687ada"><!-- raw HTML omitted -->(7c687)<!-- raw HTML omitted --></a></li> 49 <li><strong>runner</strong>: Support using function/class as <code>describe</code>/<code>test</code> name - by <a href="https://github.com/fenghan34"><code>@fenghan34</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3497">vitest-dev/vitest#3497</a> <a href="https://github.com/vitest-dev/vitest/commit/15253890"><!-- raw HTML omitted -->(15253)<!-- raw HTML omitted --></a></li> 50 </ul> 51 <h3> 🐞 Bug Fixes</h3> 52 <ul> 53 <li>The cli option is passed to coverage.exclude - by <a href="https://github.com/btea"><code>@btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3506">vitest-dev/vitest#3506</a> <a href="https://github.com/vitest-dev/vitest/commit/c37cdebe"><!-- raw HTML omitted -->(c37cd)<!-- raw HTML omitted --></a></li> 54 <li><strong>optimizer</strong>: Always respect optimizeDeps even if include/exclude is overridden - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3488">vitest-dev/vitest#3488</a> <a href="https://github.com/vitest-dev/vitest/commit/eb285ea0"><!-- raw HTML omitted -->(eb285)<!-- raw HTML omitted --></a></li> 55 <li><strong>runner</strong>: Ensure Vitest is deduped - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3489">vitest-dev/vitest#3489</a> <a href="https://github.com/vitest-dev/vitest/commit/2deb70ab"><!-- raw HTML omitted -->(2deb7)<!-- raw HTML omitted --></a></li> 56 <li><strong>ui</strong>: Don't cache coverage assets - by <a href="https://github.com/userquin"><code>@userquin</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3508">vitest-dev/vitest#3508</a> <a href="https://github.com/vitest-dev/vitest/commit/952b5be6"><!-- raw HTML omitted -->(952b5)<!-- raw HTML omitted --></a></li> 57 <li><strong>vite-node</strong>: Circular import stuck - by <a href="https://github.com/Dunqing"><code>@Dunqing</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3480">vitest-dev/vitest#3480</a> <a href="https://github.com/vitest-dev/vitest/commit/50f0700d"><!-- raw HTML omitted -->(50f07)<!-- raw HTML omitted --></a></li> 58 <li><strong>watch</strong>: Junit reporter fails to re-generate report - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3496">vitest-dev/vitest#3496</a> <a href="https://github.com/vitest-dev/vitest/commit/5b73cbf8"><!-- raw HTML omitted -->(5b73c)<!-- raw HTML omitted --></a></li> 59 </ul> 60 <h5> <a href="https://github.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0">View changes on GitHub</a></h5> 61 <h2>v0.31.4</h2> 62 <h3> 🚀 Features</h3> 63 <ul> 64 <li>Enable experimentalOptimizer - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3413">vitest-dev/vitest#3413</a> <a href="https://github.com/vitest-dev/vitest/commit/5a894aa2"><!-- raw HTML omitted -->(5a894)<!-- raw HTML omitted --></a></li> 65 </ul> 66 <h3> 🐞 Bug Fixes</h3> 67 <ul> 68 <li><strong>vite-node</strong>: Deps.inline doesn't work - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3485">vitest-dev/vitest#3485</a> <a href="https://github.com/vitest-dev/vitest/commit/be93032f"><!-- raw HTML omitted -->(be930)<!-- raw HTML omitted --></a></li> 69 </ul> 70 <h5> <a href="https://github.com/vitest-dev/vitest/compare/v0.31.3...v0.31.4">View changes on GitHub</a></h5> 71 <h2>v0.31.3</h2> 72 <h3> 🚀 Features</h3> 73 <ul> 74 <li>Support <code>VITE_NODE_DEPS_MODULE_DIRECTORIES</code> from .npmrc - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3471">vitest-dev/vitest#3471</a> <a href="https://github.com/vitest-dev/vitest/commit/393bf60c"><!-- raw HTML omitted -->(393bf)<!-- raw HTML omitted --></a></li> 75 </ul> 76 <h3> 🐞 Bug Fixes</h3> 77 <ul> 78 <li><strong>logger</strong>: Print unhandled errors before summary - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3474">vitest-dev/vitest#3474</a> <a href="https://github.com/vitest-dev/vitest/commit/4c9a7d58"><!-- raw HTML omitted -->(4c9a7)<!-- raw HTML omitted --></a></li> 79 <li><strong>runner</strong>: Suite options do not propagate to nested suites (fix: <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3467">#3467</a>) - by <a href="https://github.com/xsjcTony"><code>@xsjcTony</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3473">vitest-dev/vitest#3473</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/3467">vitest-dev/vitest#3467</a> <a href="https://github.com/vitest-dev/vitest/commit/9fb9dacb"><!-- raw HTML omitted -->(9fb9d)<!-- raw HTML omitted --></a></li> 80 </ul> 81 <!-- raw HTML omitted --> 82 </blockquote> 83 <p>... (truncated)</p> 84 </details> 85 <details> 86 <summary>Commits</summary> 87 <ul> 88 <li><a href="https://github.com/vitest-dev/vitest/commit/8d3cf9db739ddc89ab05cbf00a7cd3fc44ddfc98"><code>8d3cf9d</code></a> chore: release v0.32.0</li> 89 <li><a href="https://github.com/vitest-dev/vitest/commit/c1004e1493c00cb37ef39c547c51fb8bc49c4203"><code>c1004e1</code></a> fix(mocker)!: don't restore mock to the original if module is mocked (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3518">#3518</a>)</li> 90 <li><a href="https://github.com/vitest-dev/vitest/commit/821126f165046f3377b345664fad200b0f799d34"><code>821126f</code></a> feat!: add <code>@vitest/coverage-v8</code> package (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3339">#3339</a>)</li> 91 <li><a href="https://github.com/vitest-dev/vitest/commit/19ecc6c74685a192bdba61d5f40dec3d19ecb0aa"><code>19ecc6c</code></a> fix!: improve globs (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3392">#3392</a>)</li> 92 <li><a href="https://github.com/vitest-dev/vitest/commit/1ad63b0c61865addf857ce2846496c7db47177fc"><code>1ad63b0</code></a> feat!: throw an error, if module cannot be resolved (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3307">#3307</a>)</li> 93 <li><a href="https://github.com/vitest-dev/vitest/commit/c37cdebe5e7025f9ded3acedd534704124263210"><code>c37cdeb</code></a> fix: the cli option is passed to coverage.exclude (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3506">#3506</a>)</li> 94 <li><a href="https://github.com/vitest-dev/vitest/commit/7c687adafd17a631f38843c6fcbd1c7b290de5f5"><code>7c687ad</code></a> feat(expect): support <code>expect.soft</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3507">#3507</a>)</li> 95 <li><a href="https://github.com/vitest-dev/vitest/commit/dfb46e66316ab9aad7f2d007d16ffbe5c48001e3"><code>dfb46e6</code></a> chore(deps): update dependency <code>@edge-runtime/vm</code> to v3 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3511">#3511</a>)</li> 96 <li><a href="https://github.com/vitest-dev/vitest/commit/5b73cbf8eba00169330e3e88693dc12df7bfaf23"><code>5b73cbf</code></a> fix(watch): junit reporter fails to re-generate report (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3496">#3496</a>)</li> 97 <li><a href="https://github.com/vitest-dev/vitest/commit/5fc6aa2b77404d805ec8fcc745c265d4f256b458"><code>5fc6aa2</code></a> chore(deps): update dependency jsdom to v22 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3512">#3512</a>)</li> 98 <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v0.32.0/packages/vitest">compare view</a></li> 99 </ul> 100 </details> 101 <br /> 102 103 104 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 105 106 Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. 107 108 [//]: # (dependabot-automerge-start) 109 [//]: # (dependabot-automerge-end) 110 111 --- 112 113 <details> 114 <summary>Dependabot commands and options</summary> 115 <br /> 116 117 You can trigger Dependabot actions by commenting on this PR: 118 - `@dependabot rebase` will rebase this PR 119 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 120 - `@dependabot merge` will merge this PR after your CI passes on it 121 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 122 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 123 - `@dependabot reopen` will reopen this PR if it is closed 124 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 125 - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) 126 - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) 127 - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) 128 129 130 </details> 131 132 133 ## Comments 134 135 ### @dependabot[bot] — 2023-06-19T09:09:21Z 136 137 Superseded by #482. 138