-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Upgrade vitest from 1.6.1 to 3.0.4 #63
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
base: main
Are you sure you want to change the base?
[Snyk] Upgrade vitest from 1.6.1 to 3.0.4 #63
Conversation
Snyk has created this PR to upgrade vitest from 1.6.1 to 3.0.4. See this package in npm: vitest See this project in Snyk: https://app.snyk.io/org/nerds-github/project/ef708957-d107-4807-bb9b-ffb67ea15337?utm_source=github&utm_medium=referral&page=upgrade-pr
Reviewer's Guide by SourceryThis pull request upgrades the Updated class diagram for Vitest APIclassDiagram
class Vitest {
+version: string
+config: VitestConfig
+start()
+close()
+onTestsRerun(callback: Function)
+reporter: Reporter
}
class VitestConfig {
+provide: Record<string, any>
+globalSetup: string[]
+resolveSnapshotPath(filepath: string, config: VitestConfig): string
}
class Reporter {
+onInit(ctx: VitestContext): void
+onFinished(ctx: VitestContext): void
}
class VitestContext {
+project: Project
}
class Project {
+name: string
}
note for Vitest "Exposes versions from vitest/node entry point and statically on Vitest"
note for VitestConfig "Test context can inject values from the config's provide"
note for VitestConfig "Provides config to resolveSnapshotPath"
note for Reporter "Introduce the new reporter API"
note for VitestContext "Add resolved project names to the reporter API"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this 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.
Snyk has created this PR to upgrade vitest from 1.6.1 to 3.0.4.
ℹ️ 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.
The recommended version is 46 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-VITEST-8688130
Release notes
Package name: vitest
This release includes security patches for:
🐞 Bug Fixes
development|productioncondition on Vites 6 by @ hi-ogawa and @ sheremet-va (#7301) (ef146)/__screenshot-error- by @ hi-ogawa in #7340 (ed9ae)View changes on GitHub
🐞 Bug Fixes
🏎 Performance
View changes on GitHub
🐞 Bug Fixes
expect().resolves/rejectschain typings - by @ hi-ogawa in #7273 (fa415)View changes on GitHub
🐞 Bug Fixes
View changes on GitHub
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
spy.mockResetchanges - by @ Lordfirespeed in #6426 (db7a8)describe(..., { shuffle: boolean })and inherit from parent suite - by @ hi-ogawa in #6670 (aa1da)retryandrepeats- by @ hi-ogawa in #6817 (e8ce9)🚀 Features
diffoptions and supportprintBasicPrototype- by @ hi-ogawa, @ sheremet-va and Michał Grzegorzewski in #6740 (39186)ctx.skip()dynamically - by @ sheremet-va in #6805 (697c3)vitest/nodeentry point and statically on Vitest - by @ sheremet-va in #7029 (be8d4)diff.printBasicPrototype: falseby default - by @ hi-ogawa in #7043 (2b5c5)describe.for- by @ hi-ogawa in #7253 (0ad28)actionTimeoutas playwright provider options - by @ hi-ogawa in #6984 (e2c29)userEvent.copy, cut, paste- by @ hi-ogawa in #6769 (843a6)--project=!pattern- by @ haines in #6924 (ebfe9)thresholdsto support maximum uncovered items - by @ jonahkagan in #7061 (bde98)toHaveBeenCalledExactlyOnceWithexpect matcher - by @ jacoberdman2147 and @ sheremet-va in #6894 (ff662)toHaveBeenCalledAfterandtoHaveBeenCalledBeforeutility - by @ Barbapapazes and @ sheremet-va in #6056 (85e6f)toSatisfyasymmetric matcher - by @ hi-ogawa in #7022 (f691a)toBeOneOfmatcher - by @ zirkelc and @ hi-ogawa in #6974 (3d742)summaryoption forverboseanddefaultreporters - by @ AriPerkkio in #6893 (511b7)provide- by @ sheremet-va in #6813 (85c64)configtoresolveSnapshotPath- by @ hi-ogawa in #6800 (746d8)coverageMapin json report - by @ sheremet-va in #6606 (9c8f7)onTestsRerunmethod to global setup context - by @ sheremet-va in #6803 (e26e0)🐞 Bug Fixes
cacheDirwhen optimizer is enabled - by @ hi-ogawa in #6910 (0b08b)finallyin case there is an error to avoid it getting stuck - by @ sheremet-va in #6951 (02194)Customtype internally - by @ sheremet-va in #7032 (7957f)cancelCurrentRunawaitsrunningPromise- by @ sheremet-va in #7168 (1dbf5)getMockImplementationto return "once" implementation - by @ chaptergy in #7033 (39125)capturePrintErrorlogger duplicate event handlers - by @ hi-ogawa in