-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Reviewer's Guide by SourceryThis PR updates the Updated class diagram for VitestclassDiagram
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"
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. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
03b0fb6 to
f21bb13
Compare
f21bb13 to
1ecb5a4
Compare
|



This PR contains the following updates:
^1.0.0->^3.0.0Release Notes
vitest-dev/vitest (vitest)
v3.0.9Compare Source
🐞 Bug Fixes
ctx.skip()asnever- by @sirlancelot in https://github.com/vitest-dev/vitest/issues/7608 (09f35)resolveConfigAPI - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7623 (db14a)toHaveBeenCalledWith(asymmetricMatcher)withundefinedarguments - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7624 (0fb21)getState().testPathduring collection with no isolation - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7640 (3fb3f)coverage.all- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7597 (422ba)buildStart- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7652 (29f5a)removeEventListeneris bound to worker - by @joelgallant in https://github.com/vitest-dev/vitest/issues/7631 (ff42b)View changes on GitHub
v3.0.8Compare Source
🐞 Bug Fixes
@vitest/spy- by @mrginglymus in https://github.com/vitest-dev/vitest/issues/7575 (7f7ff)beforeEach/Allcleanup callback timeout - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7500 (0c292)Task.suiteinitialization - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7414 (ca9ff)buildStarton Vite 6 - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7480 (c0f47)View changes on GitHub
v3.0.7Compare Source
v3.0.6Compare Source
🐞 Bug Fixes
getMockedSystemTimeforuseFakeTimer- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7405 (03912)queueMicrotaskfrom default fake timers to not break node fetch - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7505 (167a9)toHaveClasstyping - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7383 (7ef23)maxWorkers- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7483 (adbb2)vite-nodeto pass correct execution wrapper offset - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7417 (1f2e5)inspectrelated cli options - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7373 (ed15b)View changes on GitHub
v3.0.5Compare Source
This release includes security patches for:
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v3.0.4Compare Source
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 https://github.com/vitest-dev/vitest/issues/7340 (ed9ae)View changes on GitHub
v3.0.3Compare Source
🐞 Bug Fixes
🏎 Performance
View changes on GitHub
v3.0.2Compare Source
🐞 Bug Fixes
expect().resolves/rejectschain typings - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7273 (fa415)View changes on GitHub
v3.0.1Compare Source
🐞 Bug Fixes
View changes on GitHub
v3.0.0Compare 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
spy.mockResetchanges - by @Lordfirespeed in https://github.com/vitest-dev/vitest/issues/6426 (db7a8)describe(..., { shuffle: boolean })and inherit from parent suite - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6670 (aa1da)retryandrepeats- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6817 (e8ce9)🚀 Features
diffoptions and supportprintBasicPrototype- by @hi-ogawa, @sheremet-va and Michał Grzegorzewski in https://github.com/vitest-dev/vitest/issues/6740 (39186)ctx.skip()dynamically - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6805 (697c3)vitest/nodeentry point and statically on Vitest - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7029 (be8d4)diff.printBasicPrototype: falseby default - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7043 (2b5c5)describe.for- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7253 (0ad28)actionTimeoutas playwright provider options - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6984 (e2c29)userEvent.copy, cut, paste- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6769 (843a6)--project=!pattern- by @haines in https://github.com/vitest-dev/vitest/issues/6924 (ebfe9)thresholdsto support maximum uncovered items - by @jonahkagan in https://github.com/vitest-dev/vitest/issues/7061 (bde98)toHaveBeenCalledExactlyOnceWithexpect matcher - by @jacoberdman2147 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6894 (ff662)toHaveBeenCalledAfterandtoHaveBeenCalledBeforeutility - by @Barbapapazes and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6056 (85e6f)toSatisfyasymmetric matcher - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7022 (f691a)toBeOneOfmatcher - by @zirkelc and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6974 (3d742)summaryoption forverboseanddefaultreporters - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6893 (511b7)provide- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6813 (85c64)configtoresolveSnapshotPath- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6800 (746d8)coverageMapin json report - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6606 (9c8f7)onTestsRerunmethod to global setup context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6803 (e26e0)🐞 Bug Fixes
cacheDirwhen optimizer is enabled - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6910 (0b08b)finallyin case there is an error to avoid it getting stuck - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6951 (02194)Customtype internally - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7032 (7957f)cancelCurrentRunawaitsrunningPromise- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7168 (1dbf5)getMockImplementationto return "once" implementation - by @chaptergy in https://github.com/vitest-dev/vitest/issues/7033 (39125)capturePrintErrorlogger duplicate event handlers - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7197 (e89c3)vitest/reportersentrypoint - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7241 (aec0b)forkspool - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7090 (8cab9)VitestRunnertype fromvitest/runners- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7240 (9b218)vitest list- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7257 (1c2b2)log-update- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7019 (6d23f)vi.mockis present - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6810 (8d179)entriesin the browser mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7167 (423d6)console.timewith fake timers - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7207 (903f3)isolate: falseis used - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6957 (426ce)dotreporter withoutlog-update- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6943 (be969)--hideSkippedTestsin base reporter - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6988 (721a5)retryandrepeatscounts - by @AriPerkkio and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7004 (3496a)describe.todoas'todo'- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7171 (1d458)toMatchFileSnapshot- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7156 (a437b)toMatchSnapshot("...")- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7126 (ac9ba)@ts-expect-error- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7125 (27d34)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.
This PR was generated by Mend Renovate. View the repository job log.