chore(deps): update dependency vitest to v1.2.2
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vitest (source) | devDependencies | minor | 1.1.3 -> 1.2.2 |
Release Notes
vitest-dev/vitest (vitest)
v1.2.2
🐞 Bug Fixes
-
coverage:
- Remove
coverage/.tmp
files after run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5008 (d53b8) - Don't crash when re-run removes earlier run's reports - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5022 (66898)
- Remove
-
expect:
- Improve
toThrow(asymmetricMatcher)
failure message - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5000 (a199a)
- Improve
-
forks:
- Set correct
VITEST_POOL_ID
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5002 (7d0a4)
- Set correct
-
threads:
- Mention common work-around for the logged error - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5024 (915d6)
-
typecheck:
- Fix
ignoreSourceErrors
in run mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5044 (6dae3)
- Fix
-
vite-node:
- Provide import.meta.filename and dirname - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5011 (73148)
-
vitest:
- Expose getHooks & setHooks - by @adriencaccia in https://github.com/vitest-dev/vitest/issues/5032 (73448)
- Test deep dependencies change detection - by @blake-newman in https://github.com/vitest-dev/vitest/issues/4934 (9c7c0)
- Throw an error if vi.mock is exported - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5034 (253df)
- Allow
useFakeTimers
to fakerequestIdleCallback
on non browser - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5028 (a9a48) - Support older NodeJS with async
import.meta.resolve
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5045 (cf564) - Don't throw an error if mocked file was already imported - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5050 (fff1a)
View changes on GitHub
v1.2.1
🐞 Bug Fixes
-
browser:
- Apply inlined workspace config to browser mode vite server - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4947 (db01f)
- Fix browser testing url for https - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4855 (6c1cc)
- Don't fail when calling vi.useFakeTimers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4992 (6c5fe)
-
coverage:
-
thresholds.autoUpdate
to work with arrow function configuration files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4959 (4b411)
-
-
expect:
- Implement chai inspect for
AsymmetricMatcher
- by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4942 (06bae)
- Implement chai inspect for
-
vite-node:
- Externalize network imports - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4987 (21f57)
-
vitest:
- Handle single
await vi.hoisted
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4962 (dcf2e) - Simplify hoist transform check regex to avoid expensive regex match - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4974 (df0db)
- Correctly find module if it has a version query - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4976 (952c3)
- Check color support for intercepted console logging - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4966 (39a71)
- Use development/production conditions when resolving external modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4980 (8877e)
- Throw a syntax error if vi.hoisted is directly exported - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4969 (f8bff)
- Handle single
View changes on GitHub
v1.2.0
🚀 Features
- Support case-insensitive path matching in cli - by @tigranmk in https://github.com/vitest-dev/vitest/issues/3567 and https://github.com/vitest-dev/vitest/issues/4911 (1326c)
- Add typeahead search - by @bonyuta0204 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4275 and https://github.com/vitest-dev/vitest/issues/4733 (480d8)
- Add syntax highlighting to error messages - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4813 (8c969)
- Allow extending toEqual - by @tigranmk and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2875 and https://github.com/vitest-dev/vitest/issues/4880 (463be)
-
coverage:
- Custom reporter support - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4828 (96dc6)
-
ui:
- Show unhandled errors on the ui - by @spiroka and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4380 (7f59a)
-
vitest:
- Add
--disable-console-intercept
option to allow opting-out from automatic console log interception - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4786 (43fa6) - Show slow test duration in verbose reporter on CI - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4929 (ccb25)
- Allow overiding package installer with public API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4936 (c2cce)
- Add
🐞 Bug Fixes
-
browser:
- Support vite config
server.headers
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4890 (55f53) - Fix
testNamePattern
config - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4909 (4add9) - Fix updating snapshot during watch mode - by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4867 (508fc)
- Remove redundant test failure logging - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4891 (7fd44)
- Support vite config
-
happy-dom:
- Window.close() for environment teardown - by @capricorn86 in https://github.com/vitest-dev/vitest/issues/4931 (91719)
-
utils:
- Fix
objDisplay
default truncate option fortest.each
title - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4917 (9ae9d)
- Fix
-
vitest:
- Fix tap reporter to handle custom error - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4897 (f8ba8)
- Gracefully exit Vitest if
process.exit
is called inside the test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4903 (8e6c1) - Throw "cannot mock" error only in isolated pools - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4905 (f99cc)
- Don't throw SyntaxError when "await vi.hoisted" is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4915 (ca62f)
- Correctly parse --maxWorkers/--minWorkers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4924 (0e77e)
- Show correct error when vi.hoisted is used inside vi.mock and the other way around - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4916 (c4eac)
- Call global teardown when using workspaces - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4935 (528bd)
- Use file instead of id for HMR - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4938 (ca76f)
- Add inlined deps to ssr.noExternal so they are added to the module graph - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4945 (1663f)
-
workspace:
- Support overring
pool
andpoolOptions
on project level - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4765 (e9fe4)
- Support overring
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.