Skip to content

Commit

Permalink
Bump vitest from 1.6.0 to 2.0.1 in /frontend (#3454)
Browse files Browse the repository at this point in the history
Bumps
[vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)
from 1.6.0 to 2.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitest-dev/vitest/releases">vitest's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.1</h2>
<h3>   🐞 Bug Fixes</h3>
<ul>
<li><strong>browser</strong>: Correctly inherit browser config in a
workspace  -  by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/6054">vitest-dev/vitest#6054</a>
<a href="https://github.com/vitest-dev/vitest/commit/4b03e72b"><!-- raw
HTML omitted -->(4b03e)<!-- raw HTML omitted --></a></li>
<li><strong>ui</strong>: Move virtual scroller to dev dependencies  - 
by <a href="https://github.com/userquin"><code>@​userquin</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/6053">vitest-dev/vitest#6053</a>
<a href="https://github.com/vitest-dev/vitest/commit/f94ede02"><!-- raw
HTML omitted -->(f94ed)<!-- raw HTML omitted --></a></li>
<li><strong>vitest</strong>: Print only running files, not every file
 -  by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/6052">vitest-dev/vitest#6052</a>
<a href="https://github.com/vitest-dev/vitest/commit/4d5597df"><!-- raw
HTML omitted -->(4d559)<!-- raw HTML omitted --></a></li>
</ul>
<h5>    <a
href="https://github.com/vitest-dev/vitest/compare/v2.0.0...v2.0.1">View
changes on GitHub</a></h5>
<h2>v2.0.0</h2>
<p>Vitest 2.0 is here! This release page lists all changes made to the
project during the beta. For the migration guide, please refer to the <a
href="https://vitest.dev/guide/migration.html#migrating-to-vitest-2-0">documentation</a>.</p>
<h3>🚨 Breaking Changes</h3>
<ul>
<li>Simplify mock function generic types and align with jest - by
<strong><a
href="https://github.com/hi-ogawa"><code>@​hi-ogawa</code></a></strong>
in <a
href="https://redirect.github.com/vitest-dev/vitest/pull/4784">vitest-dev/vitest#4784</a>
<a
href="https://github.com/vitest-dev/vitest/commit/a0c1d371edb35abfa0e6f53b05086a54d2ecc0a6"><!--
raw HTML omitted -->(a0c1d37)<!-- raw HTML omitted --></a></li>
<li>Remove <code>--segfault-retry</code> - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5514">vitest-dev/vitest#5514</a>
<a href="https://github.com/vitest-dev/vitest/commit/ed60e405e"><!-- raw
HTML omitted -->(ed60e)<!-- raw HTML omitted --></a>
<ul>
<li>This flag was introduced to combat <code>threads</code> segfaults.
Our current recommendation is to use the new default <code>forks</code>
pool instead.</li>
</ul>
</li>
<li>Run suite hooks in a stack - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5609">vitest-dev/vitest#5609</a>
<a href="https://github.com/vitest-dev/vitest/commit/1277dc1e3"><!-- raw
HTML omitted -->(1277d)<!-- raw HTML omitted --></a>
<ul>
<li>This feels like a more sensible default. Especially with the new <a
href="https://vitest.dev/api/#ontestfinished"><code>onTestFinished</code></a>
hook. This can make your tests run a little bit slower.</li>
</ul>
</li>
<li>Enable <code>coverage.ignoreEmptyLines</code> by default - by <a
href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5543">vitest-dev/vitest#5543</a>
<a href="https://github.com/vitest-dev/vitest/commit/31994942f"><!-- raw
HTML omitted -->(31994)<!-- raw HTML omitted --></a>
<ul>
<li>⚠️ This change may cause significant differences in your coverage
results compared to Vitest v1. These changes are expected as coverage
reporting is now more accurate. See <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5423">vitest-dev/vitest#5423</a>
for more details.</li>
</ul>
</li>
<li>Add correct location and snapshot fields in json reporter - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5434">vitest-dev/vitest#5434</a>
<a href="https://github.com/vitest-dev/vitest/commit/bcccce6df"><!-- raw
HTML omitted -->(bcccc)<!-- raw HTML omitted --></a>
<ul>
<li>Previously, the <code>location</code> field pointed to the error
location instead of the test location. Now it is aligned with jest and
contains the <code>line</code> and <code>column</code> of a test
function, but requires <a
href="https://vitest.dev/config/#includeTaskLocation"><code>includeTaskLocation</code></a>
to be enabled.</li>
</ul>
</li>
<li>Update dependency chai to v5 - by <strong>renovate[bot]</strong> and
<a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a>
in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5135">vitest-dev/vitest#5135</a>
<a href="https://github.com/vitest-dev/vitest/commit/73646b638"><!-- raw
HTML omitted -->(73646)<!-- raw HTML omitted --></a></li>
<li>Remove watchExclude - by <a
href="https://github.com/patak-dev"><code>@​patak-dev</code></a> in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5177">vitest-dev/vitest#5177</a>
<a href="https://github.com/vitest-dev/vitest/commit/d7371eae3"><!-- raw
HTML omitted -->(d7371)<!-- raw HTML omitted --></a></li>
<li>Change default <code>pool</code> to <code>'forks'</code> - by <a
href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5047">vitest-dev/vitest#5047</a>
<a href="https://github.com/vitest-dev/vitest/commit/7f8f9c0c0"><!-- raw
HTML omitted -->(7f8f9)<!-- raw HTML omitted --></a>
<ul>
<li>This change is done for compatibility issues</li>
<li>This pool may be slightly slower than previous <code>threads</code>
pool: <a
href="https://vitest.dev/guide/improving-performance.html#pool">https://vitest.dev/guide/improving-performance.html#pool</a></li>
</ul>
</li>
<li><code>--merge-reports</code> to support coverage - by <a
href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5736">vitest-dev/vitest#5736</a>
<a href="https://github.com/vitest-dev/vitest/commit/b7438b9be"><!-- raw
HTML omitted -->(b7438)<!-- raw HTML omitted --></a></li>
<li>Add promise-based return assertions, do not auto-resolve returned
promises - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5749">vitest-dev/vitest#5749</a>
<a href="https://github.com/vitest-dev/vitest/commit/5f710182e"><!-- raw
HTML omitted -->(5f710)<!-- raw HTML omitted --></a>
<ul>
<li>⚠️ Vitest no longer unwraps promises in
<code>spy.mock.returns</code>. If the function is async or returns a
promise, it will always succeed and have a <code>Promise</code> in
<code>results</code>. To make migration easier, we introduced
<code>spy.mock.settledResults</code> that unwraps promises and
<code>expect().toHaveResolved()</code> matcher that accepts unwrapped
value.</li>
</ul>
</li>
<li>Do not exit process if global setup has failed - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5726">vitest-dev/vitest#5726</a>
<a href="https://github.com/vitest-dev/vitest/commit/ddb09eb12"><!-- raw
HTML omitted -->(ddb09)<!-- raw HTML omitted --></a></li>
<li>Don't exit process if config failed - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5715">vitest-dev/vitest#5715</a>
<a href="https://github.com/vitest-dev/vitest/commit/f232fdd61"><!-- raw
HTML omitted -->(f232f)<!-- raw HTML omitted --></a></li>
<li>Add meta to <code>json</code> output - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5802">vitest-dev/vitest#5802</a>
<a href="https://github.com/vitest-dev/vitest/commit/dd754c103"><!-- raw
HTML omitted -->(dd754)<!-- raw HTML omitted --></a></li>
<li>Rename <code>indexScripts</code> to <code>orchestratorScripts</code>
in the browser config - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5842">vitest-dev/vitest#5842</a>
<a href="https://github.com/vitest-dev/vitest/commit/49f34ec47"><!-- raw
HTML omitted -->(49f34)<!-- raw HTML omitted --></a></li>
<li>Add &quot;vitest list&quot; API to print collected tests without
running them - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/6013">vitest-dev/vitest#6013</a>
<a href="https://github.com/vitest-dev/vitest/commit/583dd8a98"><!-- raw
HTML omitted -->(583dd)<!-- raw HTML omitted --></a>
<ul>
<li>⚠️ This changes the custom <code>pool</code> API - now requires
<code>collectTests</code> method alongside <code>runTests</code>.</li>
</ul>
</li>
<li>Remove the empty suite from the runner - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5435">vitest-dev/vitest#5435</a>
<a href="https://github.com/vitest-dev/vitest/commit/dbbbe4304"><!-- raw
HTML omitted -->(dbbbe)<!-- raw HTML omitted --></a></li>
<li>Support concurrent suites - by <strong><a
href="https://github.com/hi-ogawa"><code>@​hi-ogawa</code></a></strong>
in <a
href="https://redirect.github.com/vitest-dev/vitest/pull/5491">vitest-dev/vitest#5491</a>
<a
href="https://github.com/vitest-dev/vitest/commit/222ce44119bd02bdf0c7546f9db653000616ccfa"><!--
raw HTML omitted -->(222ce44)<!-- raw HTML omitted --></a></li>
</ul>
<h3>🚀 Features</h3>
<!-- raw HTML omitted -->
<ul>
<li><strong>browser</strong>:
<ul>
<li>🌐 This release lays the groundwork for the next iteration of Vitest
Browser Mode. You can read more about our future plans at <a
href="https://github.com/vitest-dev/vitest/discussions/5828">https://github.com/vitest-dev/vitest/discussions/5828</a></li>
<li>Add commands to communicate betweens server and the browser - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5097">vitest-dev/vitest#5097</a>
<a href="https://github.com/vitest-dev/vitest/commit/aa431f4db"><!-- raw
HTML omitted -->(aa431)<!-- raw HTML omitted --></a></li>
<li>Do not reload the page during watch mode - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5810">vitest-dev/vitest#5810</a>
<a href="https://github.com/vitest-dev/vitest/commit/e5b9a0be4"><!-- raw
HTML omitted -->(e5b9a)<!-- raw HTML omitted --></a></li>
<li>Support changing the viewport - by <a
href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in
<a
href="https://redirect.github.com/vitest-dev/vitest/issues/5811">vitest-dev/vitest#5811</a>
<a href="https://github.com/vitest-dev/vitest/commit/718512d80"><!-- raw
HTML omitted -->(71851)<!-- raw HTML omitted --></a></li>
<li>Add browser iframe mouse interaction - by <a
href="https://github.com/userquin"><code>@​userquin</code></a> in <a
href="https://redirect.github.com/vitest-dev/vitest/issues/5815">vitest-dev/vitest#5815</a>
<a href="https://github.com/vitest-dev/vitest/commit/f29b9d408"><!-- raw
HTML omitted -->(f29b9)<!-- raw HTML omitted --></a></li>
</ul>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/vitest-dev/vitest/commit/16eb6c83f84b8f5ed06a625c8ad517e281112c5f"><code>16eb6c8</code></a>
chore: release v2.0.1</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/4b03e72b9afc2140e6d6b84f0e1d4e369de887d0"><code>4b03e72</code></a>
fix(browser): correctly inherit browser config in a workspace (<a
href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/6054">#6054</a>)</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/4d5597df7b343a444329d9f789fbb3a4b22d5cbc"><code>4d5597d</code></a>
fix(vitest): print only running files, not every file (<a
href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/6052">#6052</a>)</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/1b150a38918d157242c9259d6b1138e79fc8ed44"><code>1b150a3</code></a>
chore: release v2.0.0</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/51319929e5e25069ce57f15f8a4cdccb314b65ad"><code>5131992</code></a>
docs: default pool in the types of 2.0 config (<a
href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/6043">#6043</a>)</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/56118954e62b71ff9b53e096616511f9ecadc1ee"><code>5611895</code></a>
chore: release v2.0.0-beta.13</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/8f65ae906775562ecd244775cc77cface65d50ff"><code>8f65ae9</code></a>
fix: transpile esnext to node18 to support newest JS and TS features (<a
href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/4409">#4409</a>)</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/583dd8a986c404be45cb701ba5552138a9f958f2"><code>583dd8a</code></a>
feat(vitest)!: add &quot;vitest list&quot; API to print collected tests
without running...</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/f645e48c5be096b05e82de9ff1c6331c518ed6f2"><code>f645e48</code></a>
feat: expose <code>parseAst</code>, <code>parseAstAsync</code> from
vite</li>
<li><a
href="https://github.com/vitest-dev/vitest/commit/91ba6f95e4bea54c6e732161d05cd3e49c7712a3"><code>91ba6f9</code></a>
fix(vitest): show all failed tests when rerunning a test (<a
href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/6022">#6022</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/vitest-dev/vitest/commits/v2.0.1/packages/vitest">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vitest&package-manager=npm_and_yarn&previous-version=1.6.0&new-version=2.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)
- `@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)
- `@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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Hammond <benjamin.hammond@gmail.com>
  • Loading branch information
dependabot[bot] and benhammondmusic authored Jul 8, 2024
1 parent 9ef9e37 commit 236a9b1
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 211 deletions.
Loading

0 comments on commit 236a9b1

Please sign in to comment.