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

npm: bump @vitest/browser from 0.30.1 to 0.31.0 #117

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 5, 2023

Bumps @vitest/browser from 0.30.1 to 0.31.0.

Release notes

Sourced from @​vitest/browser's releases.

v0.31.0

   🚨 Breaking Changes

  • Update mock implementation to support ESM runtime, introduce "vi.hoisted"  -  by @​sheremet-va in vitest-dev/vitest#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 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

   🐞 Bug Fixes

... (truncated)

Commits
  • 36eea98 chore: release v0.31.0
  • e24cd9b feat(ui): add html coverage (#3071)
  • 78bad4a fix(browser): failing to load vitest/utils (#3190)
  • 0c09a40 feat!: update mock implementation to support ESM runtime, introduce "vi.hoist...
  • 8d4606e feat(watch): test run cancelling, feat: --bail option for cancelling test r...
  • f3ba401 chore(browser): bump modern-node-polyfills (#3235)
  • c1dbcb4 chore: update funding and other fields in package.json (#3195)
  • See full diff 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)

Bumps [@vitest/browser](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser) from 0.30.1 to 0.31.0.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.31.0/packages/browser)

---
updated-dependencies:
- dependency-name: "@vitest/browser"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 5, 2023
@dependabot dependabot bot requested a review from elPandaFriki May 5, 2023 07:09
@elPandaFriki elPandaFriki merged commit fc2ba12 into master May 5, 2023
@elPandaFriki elPandaFriki deleted the dependabot/npm_and_yarn/master/vitest/browser-0.31.0 branch May 5, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant