fix(browser): fix matchers.d.ts by hi-ogawa · Pull Request #6995 · vitest-dev/vitest (original) (raw)
added 4 commits
hi-ogawa marked this pull request as ready for review
renovate Bot added a commit to mmkal/eslint-plugin-mmkal that referenced this pull request
jelmore1674 pushed a commit to jelmore1674/build-changelog that referenced this pull request
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @vitest/coverage-v8 (source) | devDependencies | major | 2.1.8 -> 3.0.4 |
| vitest (source) | devDependencies | major | 2.1.8 -> 3.0.4 |
Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
v3.0.4
🐞 Bug Fixes
- Filter projects eagerly during config resolution - by @sheremet-va and @AriPerkkio in vitest-dev/vitest#7313 (dff44)
- Apply
development|productioncondition on Vites 6 by @hi-ogawa and @sheremet-va (#7301) (ef146) - browser: Restrict served files from
/__screenshot-error- by @hi-ogawa in vitest-dev/vitest#7340 (ed9ae) - deps: Update all non-major dependencies - by @sheremet-va in vitest-dev/vitest#7297 (38ea8)
- runner: Timeout long sync hook - by @hi-ogawa in vitest-dev/vitest#7289 (c60ee)
- typechecking: Support typechecking parsing with Vite 6 - by @sheremet-va in vitest-dev/vitest#7335 (bff70)
- types: Fix public types - by @mrginglymus and @sheremet-va in vitest-dev/vitest#7328 (ce6af)
View changes on GitHub
v3.0.3
🐞 Bug Fixes
- browser:
- Don't throw a validation error if v8 coverage is used with filtered instances - by @sheremet-va in vitest-dev/vitest#7306 (fa463)
- Don't fail when running --browser.headless if the browser projest is part of the workspace - by @sheremet-va in vitest-dev/vitest#7311 (e43a8)
🏎 Performance
- reporters: Update summary only when needed - by @AriPerkkio in vitest-dev/vitest#7291 (7f36b)
View changes on GitHub
v3.0.2
🐞 Bug Fixes
- Don't await an empty timeout after every test - by @sheremet-va in vitest-dev/vitest#7281 (ef1aa)
- expect: Fix
expect().resolves/rejectschain typings - by @hi-ogawa in vitest-dev/vitest#7273 (fa415)
View changes on GitHub
v3.0.1
🐞 Bug Fixes
- Revert "fix: re-apply default conditions if using vite 6 or later (vitest-dev/vitest#7071)" - by @sheremet-va in vitest-dev/vitest#7071 and vitest-dev/vitest#7271 (755ec)
- deps: Update all non-major dependencies - by @sheremet-va in vitest-dev/vitest#7147 (537fa)
View changes on GitHub
v3.0.0
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 vitest-dev/vitest#6426 (db7a8)- Pass down context to test hooks - by @sheremet-va in vitest-dev/vitest#7034 (82c2e)
- Support Vite 6 - by @sheremet-va in vitest-dev/vitest#7026 (7abe8)
- coverage: Always exclude test files - by @AriPerkkio in vitest-dev/vitest#7254 (b5268)
- deps: Update fake-timers to v14.0.0 - by @xxzefgh and @hi-ogawa in vitest-dev/vitest#7097 (c98b4)
- expect: Check more properties for error equality - by @hi-ogawa and @sheremet-va in vitest-dev/vitest#5876 (10023)
- runner: Support
describe(..., { shuffle: boolean })and inherit from parent suite - by @hi-ogawa in vitest-dev/vitest#6670 (aa1da) - snapshot: Reset snapshot state for
retryandrepeats- by @hi-ogawa in vitest-dev/vitest#6817 (e8ce9) - spy: SpyOn reuses mock if method is already spyed on - by @sheremet-va and @hi-ogawa in vitest-dev/vitest#6464 (b3e43)
- vitest: Don't expose default toFake config - by @sheremet-va in vitest-dev/vitest#6288 (e3144)
🚀 Features
- Support inline
diffoptions and supportprintBasicPrototype- by @hi-ogawa, @sheremet-va and Michał Grzegorzewski in vitest-dev/vitest#6740 (39186) - Allow a custom note when calling
ctx.skip()dynamically - by @sheremet-va in vitest-dev/vitest#6805 (697c3) - Allow inline workspace configuration - by @sheremet-va in vitest-dev/vitest#6923 (562e1)
- Provide the current project to the global setup - by @sheremet-va in vitest-dev/vitest#6942 (a5bbc)
- Print project name as a label - by @sheremet-va in vitest-dev/vitest#6925 (a3bef)
- Print a deprecation warning if suite or test uses object as the third argument - by @sheremet-va in vitest-dev/vitest#7031 (407f1)
- Expose versions from
vitest/nodeentry point and statically on Vitest - by @sheremet-va in vitest-dev/vitest#7029 (be8d4) diff.printBasicPrototype: falseby default - by @hi-ogawa in vitest-dev/vitest#7043 (2b5c5)- Prepare the Vitest API to be stable - by @sheremet-va in vitest-dev/vitest#6962 (9a1b5)
- Support Vite v6 in mocker package - by @cexbrayat in vitest-dev/vitest#7058 (96f47)
- Allow multi-browser configuration - by @sheremet-va in vitest-dev/vitest#6975 (78b62)
- Add resolved project names to the reporter API - by @userquin in vitest-dev/vitest#7213 (91758)
- Introduce the new reporter API - by @sheremet-va and @AriPerkkio in vitest-dev/vitest#7069 (76662)
- Add
describe.for- by @hi-ogawa in vitest-dev/vitest#7253 (0ad28) - api:
- Add onBrowserInit event - by @sheremet-va in vitest-dev/vitest#7255 (80ce0)
- browser:
- Support
actionTimeoutas playwright provider options - by @hi-ogawa in vitest-dev/vitest#6984 (e2c29) - Support clipboard api
userEvent.copy, cut, paste- by @hi-ogawa in vitest-dev/vitest#6769 (843a6) - Implement locator.nth() - by @xeger and @sheremet-va in vitest-dev/vitest#7137 (38458)
- Support
- cli:
- Support excluding projects with
--project=!pattern- by @haines in vitest-dev/vitest#6924 (ebfe9) - Support specifying a line number when filtering tests - by @mzhubail and @sheremet-va in vitest-dev/vitest#6411 (4d94b)
- Support location filters for suites - by @mzhubail in vitest-dev/vitest#7048 (751e2)
- Support excluding projects with
- coverage:
thresholdsto support maximum uncovered items - by @jonahkagan in vitest-dev/vitest#7061 (bde98)
- expect:
- Add
toHaveBeenCalledExactlyOnceWithexpect matcher - by @jacoberdman2147 and @sheremet-va in vitest-dev/vitest#6894 (ff662) - Add
toHaveBeenCalledAfterandtoHaveBeenCalledBeforeutility - by @Barbapapazes and @sheremet-va in vitest-dev/vitest#6056 (85e6f) - Add
toSatisfyasymmetric matcher - by @hi-ogawa in vitest-dev/vitest#7022 (f691a) - Add
toBeOneOfmatcher - by @zirkelc and @hi-ogawa in vitest-dev/vitest#6974 (3d742)
- Add
- reporter:
- Add support for function type to classname option in the junit reporter - by @jpleclerc, Jean-Philippe Leclerc and @hi-ogawa in vitest-dev/vitest#6839 (dc238)
- reporters:
summaryoption forverboseanddefaultreporters - by @AriPerkkio in vitest-dev/vitest#6893 (511b7)
- runner:
- Test context can inject values from the config's
provide- by @sheremet-va in vitest-dev/vitest#6813 (85c64) - Add "queued" state - by @sheremet-va and @AriPerkkio in vitest-dev/vitest#6931 (5f8d2)
- Test context can inject values from the config's
- snapshot:
- Provide
configtoresolveSnapshotPath- by @hi-ogawa in vitest-dev/vitest#6800 (746d8)
- Provide
- ui:
- Allow run individual tests/suites from the UI - by @userquin in vitest-dev/vitest#6641 (d9cc8)
- Make clicking on a test in the UI open the report section and scroll to the test failure if applicable - by @jacoberdman2147 in vitest-dev/vitest#6900 (1bf27)
- Allow hide/show node_modules in module graph tab - by @userquin in vitest-dev/vitest#7217 (50cf6)
- vitest:
- Include
coverageMapin json report - by @sheremet-va in vitest-dev/vitest#6606 (9c8f7) - Add
onTestsRerunmethod to global setup context - by @sheremet-va in vitest-dev/vitest#6803 (e26e0)
- Include
🐞 Bug Fixes
- Misc fix for vite 6 ecosystem ci - by @hi-ogawa in vitest-dev/vitest#6867 (80f8b)
- Respect
cacheDirwhen optimizer is enabled - by @hi-ogawa in vitest-dev/vitest#6910 (0b08b) - Reset runningPromise after
finallyin case there is an error to avoid it getting stuck - by @sheremet-va in vitest-dev/vitest#6951 (02194) - Revert support for Vite 6 - by @sheremet-va (fbe5c)
- Support Node 21 - by @sheremet-va (92f7a)
- Don't use
Customtype internally - by @sheremet-va in vitest-dev/vitest#7032 (7957f) - Persist cli filters as watch mode file filter - by @hi-ogawa in vitest-dev/vitest#6955 (cc703)
- Don't use dim color for succeeded tests - by @sheremet-va in vitest-dev/vitest#7059 (8a6f5)
- Fix missing chai types - by @hi-ogawa in vitest-dev/vitest#7149 (6a09c)
cancelCurrentRunawaitsrunningPromise- by @sheremet-va in vitest-dev/vitest#7168 (1dbf5)- Add Locator typings for nth, first and last. - by @xeger in vitest-dev/vitest#7176 (d262e)
- Batch console logs by microtask - by @hi-ogawa in vitest-dev/vitest#7183 (53d1d)
- Allow
getMockImplementationto return "once" implementation - by @chaptergy in vitest-dev/vitest#7033 (39125) capturePrintErrorlogger duplicate event handlers - by @hi-ogawa in vitest-dev/vitest#7197 (e89c3)- Allow slots in vitest-browser-vue - by @sheremet-va in vitest-dev/vitest#7120 (2319f)
- Reset root workspace project on restart - by @sheremet-va in vitest-dev/vitest#7238 (6e518)
- Cleanup
vitest/reportersentrypoint - by @sheremet-va in vitest-dev/vitest#7241 (aec0b) - Colors on
forkspool - by @AriPerkkio in vitest-dev/vitest#7090 (8cab9) - Export
VitestRunnertype fromvitest/runners- by @sheremet-va in vitest-dev/vitest#7240 (9b218) - Return test fn result to runner - by @wmertens in vitest-dev/vitest#7239 (48645)
- Re-apply default conditions if using vite 6 or later - by @thebanjomatic, thebanjomatic and @hi-ogawa in vitest-dev/vitest#7071 (84287)
- Prevent infinite loop on prettyDOM calls - by @tsirlucas in vitest-dev/vitest#7250 (a3a46)
- api:
- Don't report events during
vitest list- by @sheremet-va in vitest-dev/vitest#7257 (1c2b2)
- Don't report events during
- benchmark:
- Disable type testing while benchmarking - by @AriPerkkio in vitest-dev/vitest#7068 (4e603)
- Rewrite reporter without
log-update- by @AriPerkkio in vitest-dev/vitest#7019 (6d23f)
- browser:
- Improve source maps when
vi.mockis present - by @sheremet-va in vitest-dev/vitest#6810 (8d179) - Explain TypeScript support in docs and add asymmetric matchers to types - by @sheremet-va in vitest-dev/vitest#6934 (ac1a7)
- Fix matchers.d.ts - by @hi-ogawa in vitest-dev/vitest#6995 (a485b)
- Fix user event state on preview provider - by @hi-ogawa in vitest-dev/vitest#7041 (8e944)
- Fix provider options types - by @hi-ogawa in vitest-dev/vitest#7115 (579bd)
- Only use locator.element on last expect.element attempt - by @tsirlucas in vitest-dev/vitest#7139 and vitest-dev/vitest#7152 (847d3)
- Use correct project when filtering
entriesin the browser mode - by @sheremet-va in vitest-dev/vitest#7167 (423d6) - Fix
console.timewith fake timers - by @hi-ogawa in vitest-dev/vitest#7207 (903f3) - Add instance validation to resolve coverage error - by @DevJoaoLopes and @AriPerkkio in vitest-dev/vitest#7231 (1e791)
- Improve source maps when
- coverage:
- Exclude browser mode iframe results - by @AriPerkkio in vitest-dev/vitest#6905 (e04a1)
- Correct coverage when
isolate: falseis used - by @AriPerkkio in vitest-dev/vitest#6957 (426ce) - Prevent crash when v8 incorrectly merges static_initializer's - by @AriPerkkio in vitest-dev/vitest#7150 (cb6db)
- deps:
- Update all non-major dependencies - in vitest-dev/vitest#7085 (8cc92)
- Update all non-major dependencies - in vitest-dev/vitest#7116 (de5ce)
- Update dependency pathe to v2 - in vitest-dev/vitest#7181 (74dbe)
- diff:
- Truncate to avoid crash on diff large objects - by @hi-ogawa in vitest-dev/vitest#7133 (2a9d6)
- junit:
- Fix testsuites time to be sum of all testsuite items - by @saitonakamura in vitest-dev/vitest#6985 (ca37a)
- pretty-format:
- Support react 19 - by @hi-ogawa in vitest-dev/vitest#6909 (bd29b)
- reporters:
- Write buffered stdout/stderr on process exit - by @AriPerkkio in vitest-dev/vitest#6932 (80cde)
- Rewrite
dotreporter withoutlog-update- by @AriPerkkio in vitest-dev/vitest#6943 (be969) - Check
--hideSkippedTestsin base reporter - by @AriPerkkio in vitest-dev/vitest#6988 (721a5) - Show
retryandrepeatscounts - by @AriPerkkio and @hi-ogawa in vitest-dev/vitest#7004 (3496a)
- runner:
- Long synchronous tasks does not time out - by @ferdodo and @sheremet-va in vitest-dev/vitest#2920 and vitest-dev/vitest#6944 (2fb58)
- Mark tests of
describe.todoas'todo'- by @AriPerkkio in vitest-dev/vitest#7171 (1d458)
- snapshot:
- Fix "obsolete" message on snapshot update re-run - by @hi-ogawa in vitest-dev/vitest#7129 (c2beb)
- Preserve white space of
toMatchFileSnapshot- by @hi-ogawa in vitest-dev/vitest#7156 (a437b) - Fix obsoleteness check of
toMatchSnapshot("...")- by @hi-ogawa in vitest-dev/vitest#7126 (ac9ba)
- typecheck:
- Fix typecheck collect on Vite 6 - by @hi-ogawa in vitest-dev/vitest#6972 (7b35d)
- Use unique temp and tsbuildinfo file for each tsconfig file - by @masnormen in vitest-dev/vitest#7107 and vitest-dev/vitest#7112 (61b30)
- Fix error test case mapping for
@ts-expect-error- by @hi-ogawa in vitest-dev/vitest#7125 (27d34)
- types:
- Make parameters non-nullable for Playwright options - by @apple-yagi in vitest-dev/vitest#6989 (fe2a1)
- ui:
- Wrong module graph when generating html.meta.json.gz in browser mode - by @userquin in vitest-dev/vitest#7214 (dccdd)
- Add errors and draft state (*) to the code editor - by @userquin in vitest-dev/vitest#7044 (faca4)
- vite-node:
- Fix error stack on Windows - by @hi-ogawa in vitest-dev/vitest#6786 (bf7b3)
- Properly normalize file url import - by @hi-ogawa in vitest-dev/vitest#7087 (31675)
- Fix mandatory node prefix - by @hi-ogawa in vitest-dev/vitest#7179 (b6284)
- watch:
- Don't indicate exit when no matching files - by @sheremet-va and @AriPerkkio in vitest-dev/vitest#7246 (003c0)
- workspace:
extends: truecorrectly inherits all root config properties - by @sheremet-va in vitest-dev/vitest#7232 (798c0)
View changes on GitHub
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 these updates again.
- If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot.
Reviewed-on: https://gitea.justinelmore.dev/jelmore1674/build-changelog/pulls/79 Co-authored-by: Renovate Bot renovate-bot@forgejo.justinelmore.dev Co-committed-by: Renovate Bot renovate-bot@forgejo.justinelmore.dev
This file contains hidden or 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
[ Show hidden characters]({{ revealButtonHref }})