Skip to content

Update dependency vitest to v3 #45

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

Merged
merged 1 commit into from
Mar 30, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vitest (source) ^1.0.0 -> ^3.0.0 age adoption passing confidence

Release Notes

vitest-dev/vitest (vitest)

v3.0.9

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v3.0.8

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v3.0.7

Compare Source

v3.0.6

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v3.0.5

Compare Source

This release includes security patches for:

🚀 Features
🐞 Bug Fixes
View changes on GitHub

v3.0.4

Compare Source

This release includes security patches for:

   🐞 Bug Fixes
    View changes on GitHub

v3.0.3

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v3.0.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v3.0.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v3.0.0

Compare Source

Vitest 3 is here! There are a few breaking changes, but we expect the migration to be smooth. This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.

   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link

sourcery-ai bot commented Mar 28, 2025

Reviewer's Guide by Sourcery

This PR updates the vitest dependency from version ^1.0.0 to ^3.0.0. This includes multiple bug fixes, new features, breaking changes, and security patches.

Updated class diagram for Vitest

classDiagram
    class Vitest {
        +version: string
        +config: VitestConfig
        +start()
        +close()
        +onTestsRerun()
    }

    class VitestConfig {
        +provide: Record<string, any>
        +globalSetup: string[]
        +reporters: Reporter[]
        +browser: BrowserConfig
        +coverage: CoverageConfig
        +snapshot: SnapshotConfig
    }

    class Reporter {
        +onInit(ctx: Context)
        +onFinished(ctx: Context)
        +onTestStart(test: Test)
        +onTestEnd(test: Test)
    }

    class BrowserConfig {
        +enabled: boolean
        +headless: boolean
        +provider: string
        +actionTimeout: number
    }

    class CoverageConfig {
        +enabled: boolean
        +all: boolean
        +thresholds: ThresholdsConfig
    }

    class ThresholdsConfig {
        +lines: number
        +functions: number
        +branches: number
        +statements: number
    }

    class SnapshotConfig {
        +resolveSnapshotPath(path: string, config: VitestConfig): string
    }

    class TestContext {
        +skip(message?: string): void
    }

    Vitest -- VitestConfig: has a
    VitestConfig -- Reporter: has many
    VitestConfig -- BrowserConfig: has a
    VitestConfig -- CoverageConfig: has a
    VitestConfig -- SnapshotConfig: has a
    TestContext -- VitestConfig: has a

    note for Vitest "Vitest class with version and config"
    note for VitestConfig "Vitest configuration options"
    note for Reporter "Interface for test reporters"
    note for BrowserConfig "Configuration for browser testing"
    note for CoverageConfig "Configuration for coverage reports"
    note for ThresholdsConfig "Configuration for coverage thresholds"
    note for SnapshotConfig "Configuration for snapshots"
    note for TestContext "Context passed to test hooks"
Loading

File-Level Changes

Change Details Files
The pull request updates the vitest dependency from version ^1.0.0 to ^3.0.0.
  • Updated vitest dependency to the latest major version.
  • The update includes bug fixes, features, and breaking changes from versions 3.0.1 to 3.0.9.
  • The update includes security patches for Remote Code Execution and Browser mode serves arbitrary files.
pnpm-lock.yaml
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

@renovate renovate bot force-pushed the renovate/major-vitest-monorepo branch from 03b0fb6 to f21bb13 Compare March 28, 2025 03:37
@renovate renovate bot force-pushed the renovate/major-vitest-monorepo branch from f21bb13 to 1ecb5a4 Compare March 30, 2025 02:39
@sarvex sarvex merged commit ed4de8d into main Mar 30, 2025
Copy link

@renovate renovate bot deleted the renovate/major-vitest-monorepo branch March 30, 2025 02:41
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.

1 participant