forked from Litlyx/litlyx
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Snyk] Upgrade vitest from 1.6.1 to 3.0.5 #70
Open
nerdy-tech-com-gitub
wants to merge
1
commit into
main
Choose a base branch
from
snyk-upgrade-fee8ef687a845b7325df506ea1f5f078
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Snyk] Upgrade vitest from 1.6.1 to 3.0.5 #70
nerdy-tech-com-gitub
wants to merge
1
commit into
main
from
snyk-upgrade-fee8ef687a845b7325df506ea1f5f078
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Snyk has created this PR to upgrade vitest from 1.6.1 to 3.0.5. 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 Sequence diagram for running tests in VitestsequenceDiagram
participant User
participant Vitest
participant Runner
participant Reporter
User->>Vitest: start()
activate Vitest
Vitest->>Runner: runTests()
activate Runner
Runner->>Reporter: onInit(testFiles)
activate Reporter
Reporter-->>Runner:
deactivate Reporter
loop For each test file
Runner->>Runner: executeTest(testFile)
end
Runner->>Reporter: onFinished(testResults)
activate Reporter
Reporter-->>Runner:
deactivate Reporter
Runner-->>Vitest:
deactivate Runner
Vitest-->>User:
deactivate Vitest
Updated class diagram for Vitest APIclassDiagram
class Vitest {
<<interface>>
+version: string
+start(): Promise<void>
+close(): Promise<void>
+onTestsRerun(fn: () => Promise<void>): void
+reporter: Reporter
}
class Reporter {
<<interface>>
+onInit(testFiles: string[]): void
+onFinished(testResults: TestResult[]): void
}
class TestResult {
+id: string
+name: string
+status: 'pass' | 'fail' | 'skip'
}
note for Vitest "Vitest API with version and reporter"
note for Reporter "Reporter interface with init and finished methods"
note for TestResult "TestResult class with id, name, and status"
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade vitest from 1.6.1 to 3.0.5.
ℹ️ 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 47 versions ahead of your current version.
The recommended version was released 22 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-VITEST-8688130
Release notes
Package name: vitest
This release includes security patches for:
🚀 Features
🐞 Bug Fixes
View changes on GitHub
This release includes security patches for:
🐞 Bug Fixes
development|production
condition 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/rejects
chain 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.mockReset
changes - by @ Lordfirespeed in #6426 (db7a8)describe(..., { shuffle: boolean })
and inherit from parent suite - by @ hi-ogawa in #6670 (aa1da)retry
andrepeats
- by @ hi-ogawa in #6817 (e8ce9)🚀 Features
diff
options and supportprintBasicPrototype
- by @ hi-ogawa, @ sheremet-va and Michał Grzegorzewski in #6740 (39186)ctx.skip()
dynamically - by @ sheremet-va in #6805 (697c3)vitest/node
entry point and statically on Vitest - by @ sheremet-va in #7029 (be8d4)diff.printBasicPrototype: false
by default - by @ hi-ogawa in #7043 (2b5c5)describe.for
- by @ hi-ogawa in #7253 (0ad28)actionTimeout
as 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)thresholds
to support maximum uncovered items - by @ jonahkagan in #7061 (bde98)toHaveBeenCalledExactlyOnceWith
expect matcher - by @ jacoberdman2147 and @ sheremet-va in #6894 (ff662)toHaveBeenCalledAfter
andtoHaveBeenCalledBefore
utility - by @ Barbapapazes and @ sheremet-va in #6056 (85e6f)toSatisfy
asymmetric matcher - by @ hi-ogawa in #7022 (f691a)toBeOneOf
matcher - by @ zirkelc and @ hi-ogawa in #6974 (3d742)summary
option forverbose
anddefault
reporters - by @ AriPerkkio in #6893 (511b7)provide
- by @ sheremet-va in #6813 (85c64)config
toresolveSnapshotPath
- by @ hi-ogawa in #6800 (746d8)coverageMap
in json report - by @ sheremet-va in #6606 (9c8f7)onTestsRerun
method to global setup context - by @ sheremet-va in #6803 (e26e0)🐞 Bug Fixes
cacheDir
when optimizer is enabled - by @ hi-ogawa in #6910 (0b08b)finally
in case there is an error to avoid it getting stuck - by @ sheremet-va in #6951 (02194)Custom
type internally - by @ sheremet-va in #7032 (7957f)This pull request upgrades the vitest dependency from version 1.6.1 to 3.0.5. This upgrade includes several new features, bug fixes, and performance improvements.
New Features:
toHaveBeenCalledExactlyOnceWith
expect matcher.toHaveBeenCalledAfter
andtoHaveBeenCalledBefore
utility.toSatisfy
asymmetric matcher.toBeOneOf
matcher.describe.for
.Bug Fixes:
Enhancements: