Bump vitest from 0.28.5 to 0.31.1 #53

Merged
dependabot[bot] merged 1 commits from dependabot/npm_and_yarn/vitest-0.31.1 into main 2023-05-25 02:09:09 +00:00
dependabot[bot] commented 2023-05-25 01:07:36 +00:00 (Migrated from github.com)

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps vitest from 0.28.5 to 0.31.1.

Release notes

Sourced from vitest's releases.

v0.31.1

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

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 in vitest-dev/vitest#3294 (cf3af)

    • The change should be minor:
    - declare namespace Vi {
    + declare module 'vitest' {
       interface Assertion<T = any> extends CustomMatchers<T> {}
       interface AsymmetricMatchersContaining extends CustomMatchers {}
    }
    

   🚀 Features

... (truncated)

Commits
  • 6433224 chore: release v0.31.1
  • b354bc1 fix(browser): throw an error if test failed to load (#3390)
  • c44d991 fix: check error type before modifying it (#3385)
  • 324a9b5 fix: exclude cwd from test name filter (#3353)
  • 0f0d756 docs: synchronize startVitest API with docs (#3343)
  • c816b89 chore: typo in description comment in types/browser.ts (#3319)
  • c53ae07 fix(typecheck): correctly resolve custom tsconfig path (#3342)
  • ddbba39 fix(reporter): prevent deleting test reports stored in coverage directory (#3...
  • 69d2711 feat(watch): press r should rerun current pattern tests (#3305)
  • 93fbd02 fix(cli): improve cac errors when mixing boolean and dot notation (#3302)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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 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)
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 0.28.5 to 0.31.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>v0.31.1</h2> <h3>   🚀 Features</h3> <ul> <li><strong>watch</strong>: Press <code>r</code> should rerun current pattern tests  -  by <a href="https://github.com/Dunqing"><code>@​Dunqing</code></a> and <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3305">vitest-dev/vitest#3305</a> <a href="https://github.com/vitest-dev/vitest/commit/69d27117"><!-- raw HTML omitted -->(69d27)<!-- raw HTML omitted --></a></li> </ul> <h3>   🐞 Bug Fixes</h3> <ul> <li>Make sure thrown error is an object  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3298">vitest-dev/vitest#3298</a> <a href="https://github.com/vitest-dev/vitest/commit/a93be56c"><!-- raw HTML omitted -->(a93be)<!-- raw HTML omitted --></a></li> <li>Remove duplicate type  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3303">vitest-dev/vitest#3303</a> <a href="https://github.com/vitest-dev/vitest/commit/5382e8b6"><!-- raw HTML omitted -->(5382e)<!-- raw HTML omitted --></a></li> <li>Throw an error, if tests are collected with a different vitest version  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3301">vitest-dev/vitest#3301</a> <a href="https://github.com/vitest-dev/vitest/commit/708b10fe"><!-- raw HTML omitted -->(708b1)<!-- raw HTML omitted --></a></li> <li>Support application/x-gzip metadata in html report  -  by <a href="https://github.com/mzanelee"><code>@​mzanelee</code></a> and <strong>Michael Lee</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3333">vitest-dev/vitest#3333</a> <a href="https://github.com/vitest-dev/vitest/commit/5bf7eb6e"><!-- raw HTML omitted -->(5bf7e)<!-- raw HTML omitted --></a></li> <li>Correctly restore vi.fn implementation  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3341">vitest-dev/vitest#3341</a> <a href="https://github.com/vitest-dev/vitest/commit/2aff8c5f"><!-- raw HTML omitted -->(2aff8)<!-- raw HTML omitted --></a></li> <li>Display error message correctly  -  by <a href="https://github.com/btea"><code>@​btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3314">vitest-dev/vitest#3314</a> <a href="https://github.com/vitest-dev/vitest/commit/a5b3d78e"><!-- raw HTML omitted -->(a5b3d)<!-- raw HTML omitted --></a></li> <li>Exclude <code>cwd</code> from test name filter  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3353">vitest-dev/vitest#3353</a> <a href="https://github.com/vitest-dev/vitest/commit/324a9b54"><!-- raw HTML omitted -->(324a9)<!-- raw HTML omitted --></a></li> <li>Check error type before modifying it  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3385">vitest-dev/vitest#3385</a> <a href="https://github.com/vitest-dev/vitest/commit/c44d9912"><!-- raw HTML omitted -->(c44d9)<!-- raw HTML omitted --></a></li> <li><code>toMatchInlineSnapshot</code> fails when file path includes parentheses  -  by <a href="https://github.com/pacexy"><code>@​pacexy</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3370">vitest-dev/vitest#3370</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/3371">vitest-dev/vitest#3371</a> <a href="https://github.com/vitest-dev/vitest/commit/dcf1346a"><!-- raw HTML omitted -->(dcf13)<!-- raw HTML omitted --></a></li> <li>Stop spying on a method, when it's restored  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3386">vitest-dev/vitest#3386</a> <a href="https://github.com/vitest-dev/vitest/commit/2cb1a15a"><!-- raw HTML omitted -->(2cb1a)<!-- raw HTML omitted --></a></li> <li>Test repeats  -  by <a href="https://github.com/fenghan34"><code>@​fenghan34</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3369">vitest-dev/vitest#3369</a> <a href="https://github.com/vitest-dev/vitest/commit/fb8fc7ab"><!-- raw HTML omitted -->(fb8fc)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Throw an error if test failed to load  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3390">vitest-dev/vitest#3390</a> <a href="https://github.com/vitest-dev/vitest/commit/b354bc1c"><!-- raw HTML omitted -->(b354b)<!-- raw HTML omitted --></a></li> <li>Keep default export when rewriting exports  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3389">vitest-dev/vitest#3389</a> <a href="https://github.com/vitest-dev/vitest/commit/6501d2e3"><!-- raw HTML omitted -->(6501d)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cli</strong>: <ul> <li>Improve cac errors when mixing boolean and dot notation  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3302">vitest-dev/vitest#3302</a> <a href="https://github.com/vitest-dev/vitest/commit/93fbd02d"><!-- raw HTML omitted -->(93fbd)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li>Prevent deleting test reports stored in coverage directory  -  by <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3331">vitest-dev/vitest#3331</a> <a href="https://github.com/vitest-dev/vitest/commit/ddbba396"><!-- raw HTML omitted -->(ddbba)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>typecheck</strong>: <ul> <li>Correctly resolve custom tsconfig path  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3342">vitest-dev/vitest#3342</a> <a href="https://github.com/vitest-dev/vitest/commit/c53ae079"><!-- raw HTML omitted -->(c53ae)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vite-node</strong>: <ul> <li>Allow returning id not wrapped in promise  -  by <a href="https://github.com/danielroe"><code>@​danielroe</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3312">vitest-dev/vitest#3312</a> <a href="https://github.com/vitest-dev/vitest/commit/9836ccb4"><!-- raw HTML omitted -->(9836c)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5>    <a href="https://github.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1">View changes on GitHub</a></h5> <h2>v0.31.0</h2> <h3>   🚨 Breaking Changes</h3> <ul> <li> <p>Remove <code>browser</code> from allowed pools inside <code>poolMatchGlob</code> config option. Please, use Vitest workspaces for running tests in the browser.</p> </li> <li> <p>Move assertion declarations to expect package  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3294">vitest-dev/vitest#3294</a> <a href="https://github.com/vitest-dev/vitest/commit/cf3afe2b"><!-- raw HTML omitted -->(cf3af)<!-- raw HTML omitted --></a></p> <ul> <li>The change should be minor:</li> </ul> <pre lang="diff"><code>- declare namespace Vi { + declare module 'vitest' { interface Assertion&lt;T = any&gt; extends CustomMatchers&lt;T&gt; {} interface AsymmetricMatchersContaining extends CustomMatchers {} } </code></pre> </li> </ul> <h3>   🚀 Features</h3> <ul> <li>Update mock implementation to support ESM runtime, introduce &quot;vi.hoisted&quot;  -  by <a href="https://github.com/sheremet-va"><code>@​sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/3258">vitest-dev/vitest#3258</a> <a href="https://github.com/vitest-dev/vitest/commit/0c09a40d"><!-- raw HTML omitted -->(0c09a)<!-- raw HTML omitted --></a></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/6433224c0a05d29968eead273d1c57c680034566"><code>6433224</code></a> chore: release v0.31.1</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b354bc1c208ce300d17a3ef284a59be7470b47b3"><code>b354bc1</code></a> fix(browser): throw an error if test failed to load (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3390">#3390</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/c44d99121262d4e9c8f2fe17e91a6a847c8c8e7a"><code>c44d991</code></a> fix: check error type before modifying it (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3385">#3385</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/324a9b54c204251579c7556d33f0bfc1b5411c27"><code>324a9b5</code></a> fix: exclude <code>cwd</code> from test name filter (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3353">#3353</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0f0d75631c3b9d6f335d822a24e25b46b2219eda"><code>0f0d756</code></a> docs: synchronize startVitest API with docs (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3343">#3343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/c816b89b94aa7286b8c8ff321887f198595d350e"><code>c816b89</code></a> chore: typo in description comment in types/browser.ts (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3319">#3319</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/c53ae0791a95eb7b6c1a543230f6884183484385"><code>c53ae07</code></a> fix(typecheck): correctly resolve custom tsconfig path (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3342">#3342</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ddbba3962554c3a5a2ec4e7bfaa90eae9b7f1c22"><code>ddbba39</code></a> fix(reporter): prevent deleting test reports stored in coverage directory (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3">#3</a>...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/69d27117d85990536f4dec5a08f3d5bdb48578c9"><code>69d2711</code></a> feat(watch): press <code>r</code> should rerun current pattern tests (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3305">#3305</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/93fbd02d89f71412e76fe6ddb8cd47693b105527"><code>93fbd02</code></a> fix(cli): improve cac errors when mixing boolean and dot notation (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/3302">#3302</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v0.31.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=0.28.5&new-version=0.31.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 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>
Sign in to join this conversation.