Skip to content

chore(deps): update dependency vitest to ^0.31.0#409

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/vitest-0.x
May 7, 2023
Merged

chore(deps): update dependency vitest to ^0.31.0#409
renovate[bot] merged 1 commit intomainfrom
renovate/vitest-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 6, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vitest ^0.30.0 -> ^0.31.0 age adoption passing confidence

Release Notes

vitest-dev/vitest

v0.31.0

Compare Source

   🚨 Breaking Changes
  • Update mock implementation to support ESM runtime, introduce "vi.hoisted"  -  by @​sheremet-va in https://github.com/vitest-dev/vitest/issues/3258 (0c09a)

    • Bypass ESM import order restriction with vi.hoisted to run code before imports are executed:
    vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1)))

    You can also use it to pass variables to vi.mock:

    const { mockedMethod } = vi.hoisted(() => {
      return { mockedMethod: vi.fn() }
    })   
    vi.mocked('./path/to/module.js', () => {
      return { originalMethod: mockedMethod }
    })
  • Move assertion declarations to expect package  -  by @​sheremet-va in https://github.com/vitest-dev/vitest/issues/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
   🐞 Bug Fixes
    View changes on GitHub

v0.30.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

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.


  • 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 added the dependencies label May 6, 2023
@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #409 (11c37d4) into main (1f06b04) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #409   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            5         5           
  Branches         3         3           
=========================================
  Hits             5         5           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@renovate renovate bot force-pushed the renovate/vitest-0.x branch from d5fe3a9 to 11c37d4 Compare May 6, 2023 23:40
@renovate renovate bot merged commit 2ad0f2a into main May 7, 2023
@renovate renovate bot deleted the renovate/vitest-0.x branch May 7, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants