Skip to content
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

chore(deps): update vitest to ~0.25.1 #1544

Merged
merged 1 commit into from
Nov 8, 2022
Merged

chore(deps): update vitest to ~0.25.1 #1544

merged 1 commit into from
Nov 8, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 8, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vitest/coverage-c8 ~0.24.5 -> ~0.25.1 age adoption passing confidence
@vitest/ui ~0.24.5 -> ~0.25.1 age adoption passing confidence
vitest ~0.24.5 -> ~0.25.1 age adoption passing confidence

Release Notes

vitest-dev/vitest

v0.25.1

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v0.25.0

Compare Source

   ✅ Builtin TypeChecking

In v0.25.0, Vitest allows you to write tests for your types, using expectTypeOf or assertType syntaxes. By default all tests inside *.test-d.ts files are considered type tests. Run vitest typecheck to run type tests.

// my.test-d.ts
import { assertType, expectTypeOf } from 'vitest'
import { mount } from './mount.js'

test('my types work properly', () => {
  expectTypeOf(mount).toBeFunction()
  expectTypeOf(mount).parameter(0).toMatchTypeOf<{ name: string }>()

  // @&#8203;ts-expect-error name is a string
  assertType(mount({ name: 42 }))
})

Learn more at the documentation and this RFC

   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

Configuration

📅 Schedule: Branch creation - "before 3am 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner November 8, 2022 16:30
@renovate renovate bot added the c: dependencies Pull requests that adds/updates a dependency label Nov 8, 2022
@Shinigami92
Copy link
Member

Shinigami92 commented Nov 8, 2022

vitest v0.25 comes with native Builtin TypeChecking 🚀

https://vitest.dev/guide/testing-types.html

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Merging #1544 (f28feac) into next (a5de229) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1544   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files        2214     2214           
  Lines      238701   238701           
  Branches     1014     1014           
=======================================
  Hits       237845   237845           
  Misses        835      835           
  Partials       21       21           

@Shinigami92 Shinigami92 enabled auto-merge (squash) November 8, 2022 16:37
@Shinigami92 Shinigami92 requested review from a team November 8, 2022 16:38
@Shinigami92 Shinigami92 merged commit 7be3724 into next Nov 8, 2022
@ST-DDT ST-DDT deleted the renovate/vitest branch November 8, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: dependencies Pull requests that adds/updates a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants