Skip to content

[Snyk] Upgrade vitest from 2.1.9 to 3.1.1 #67

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

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Apr 26, 2025

snyk-top-banner

Snyk has created this PR to upgrade vitest from 2.1.9 to 3.1.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 20 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: vitest

Snyk has created this PR to upgrade vitest from 2.1.9 to 3.1.1.

See this package in npm:
vitest

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/e0f85d4f-5b91-4f07-b2f7-b57f3dfc1945?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Apr 26, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the vitest testing framework from version 2.1.9 to 3.1.1 by updating the dependency version in package.json. This is a major version upgrade and may contain breaking changes.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Major version upgrade incorporating new features.
  • Introduce new options and CLI flags such as '%$' for test titles and 'diff.maxDepth'.
  • Add a 'configureVitest' plugin hook.
  • Allow array elements for 'test.each/for' title formatting.
  • Add new browser locators ('and', 'or', 'filter').
  • Enhance reporter options like '--silent=passed-only' and always rendering test time.
  • Add 'test.scoped' to override fixtures per-suite.
  • Allow conditional 'context.skip(boolean)'.
  • Support rolldown-vite.
package.json
Addresses numerous bug fixes.
  • Fix issues with reporter order and verbosity.
  • Resolve VM tests flakiness.
  • Correct default 'diff.expand' setting.
  • Improve browser timeout calculation.
  • Update dependencies.
  • Fix hiding skipped tests/suites.
  • Resolve snapshot indent normalization issues.
  • Fix typings for 'ctx.skip()'.
  • Clean up 'resolveConfig' API.
  • Correct 'toHaveBeenCalledWith' with 'undefined' arguments.
  • Fix race condition in RPC filesystem cache.
  • Address issues with 'getState().testPath' and '%s' format.
  • Remove '@testing-library/dom' from browser dependencies.
  • Improve browser source map handling and error reporting.
  • Fix coverage with browser mode and 'coverage.all'.
  • Show stacktrace on hook timeout error.
  • Fix 'beforeEach/All' cleanup callback timeout.
  • Simplify 'Task.suite' initialization.
  • Allow inline snapshot calls on the same location.
  • Fix 'buildStart' on Vite 6 and missing 'buildStart'.
  • Ensure 'removeEventListener' is bound to worker.
  • Fix fetch cache multiple writes.
  • Use 'browser.isolate' instead of 'config.isolate'.
  • Remove vestigial spy stub and fix argv string splitting.
  • Fix mocking modules out of root in browser mode.
  • Correct 'toHaveClass' typing.
  • Relax browser locator selectors methods.
  • Resolve thread count from 'maxWorkers'.
  • Fix 'getMockedSystemTime' for 'useFakeTimer'.
  • Add compatibility for jest-image-snapshot.
  • Ensure project names are readable in dark terminals.
  • Exclude 'queueMicrotask' from default fake timers.
  • Use 'tinyglobby' instead of 'fast-glob'.
package.json
Introduces performance optimizations.
  • Optimize browser test execution by doing wdio context switching only once per file.
  • Fork jest-dom instead of bundling it for browser tests.
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!

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. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy