chore(deps): update dependency vitest to ^0.31.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vitest | devDependencies | minor | ^0.30.0 -> ^0.31.0 |
Release Notes
vitest-dev/vitest
v0.31.4
🚀 Features
- Enable experimentalOptimizer - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3413 (5a894)
🐞 Bug Fixes
- vite-node: Deps.inline doesn't work - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3485 (be930)
View changes on GitHub
v0.31.3
🚀 Features
- Support
VITE_NODE_DEPS_MODULE_DIRECTORIES
from .npmrc - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3471 (393bf)
🐞 Bug Fixes
- logger: Print unhandled errors before summary - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3474 (4c9a7)
- runner: Suite options do not propagate to nested suites (fix: #3467) - by @xsjcTony in https://github.com/vitest-dev/vitest/issues/3473 and https://github.com/vitest-dev/vitest/issues/3467 (9fb9d)
- vite-node: Clear importers when invalidating module - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3475 (add29)
View changes on GitHub
v0.31.2
🚀 Features
- Throw error if using inline snapshot inside of
test.each
ordescribe.each
- by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3360 (7c2f7) - Pass down meta information to Node.js process - by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/3449 (e39ad)
-
coverage: Add
reportOnFailure
option - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3453 (1988f) - dev: Add moduleDirectories option to the vitest config - by @fooddilsn and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3337 (b3602)
🐞 Bug Fixes
- Don't print empty diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3437 (32b53)
- Don't restore methods in automocked dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3438 (d1afd)
- Dot reporter scrollback buffer spam - by @gtm-nayan in https://github.com/vitest-dev/vitest/issues/3415 (e6792)
- Gracefully exit when first
SIGINT
is received - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3407 (a2cc2) -
rejects
&resolves
breaks with thenable objects - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3456 (4e996) - Prevent
birpc
timeouts whenMath.random
mock is not restored - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3460 (cd5d5) - Assertion diff message now handle non writable property correctly - by @PCreations in https://github.com/vitest-dev/vitest/issues/3422 (f75ab)
- Extend logging of process timeout errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3452 (42643)
- Support requiring files with
less
extension - by @rluvaton in https://github.com/vitest-dev/vitest/issues/3465 (4d045) -
cli:
- Improve colors used when erroring - by @ghiscoding and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3349 (16681)
-
runner:
- Suite timeout does not take effect - by @btea in https://github.com/vitest-dev/vitest/issues/3455 (82547)
-
spy:
- Don't print received calls if there are no calls - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3405 (41e11)
-
typecheck:
- Show tsc errors not related to test files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3441 (a1da5)
-
types:
- Fix
PartialMock
with async TReturns - by @ghry5 in https://github.com/vitest-dev/vitest/issues/3462 (b664d)
- Fix
-
vite-node:
- Circular import stuck - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3418 (632ee)
- Coerce to string in import(dep) - by @jcbhmr and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3430 (b72eb)
- Don't remove sourcemap string in source code - by @rxliuli and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2918 and https://github.com/vitest-dev/vitest/issues/3379 (02dc9)
- Don't externalize "dist" by default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3446 (306b2)
View changes on GitHub
v0.31.1
🚀 Features
-
watch: Press
r
should rerun current pattern tests - by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 (69d27)
🐞 Bug Fixes
- Make sure thrown error is an object - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3298 (a93be)
- Remove duplicate type - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3303 (5382e)
- Throw an error, if tests are collected with a different vitest version - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3301 (708b1)
- Support application/x-gzip metadata in html report - by @mzanelee and Michael Lee in https://github.com/vitest-dev/vitest/issues/3333 (5bf7e)
- Correctly restore vi.fn implementation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3341 (2aff8)
- Display error message correctly - by @btea in https://github.com/vitest-dev/vitest/issues/3314 (a5b3d)
- Exclude
cwd
from test name filter - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3353 (324a9) - Check error type before modifying it - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3385 (c44d9)
-
toMatchInlineSnapshot
fails when file path includes parentheses - by @pacexy in https://github.com/vitest-dev/vitest/issues/3370 and https://github.com/vitest-dev/vitest/issues/3371 (dcf13) - Stop spying on a method, when it's restored - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3386 (2cb1a)
- Test repeats - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3369 (fb8fc)
-
browser:
- Throw an error if test failed to load - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3390 (b354b)
- Keep default export when rewriting exports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3389 (6501d)
-
cli:
- Improve cac errors when mixing boolean and dot notation - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3302 (93fbd)
-
reporter:
- Prevent deleting test reports stored in coverage directory - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3331 (ddbba)
-
typecheck:
- Correctly resolve custom tsconfig path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3342 (c53ae)
-
vite-node:
- Allow returning id not wrapped in promise - by @danielroe in https://github.com/vitest-dev/vitest/issues/3312 (9836c)
View changes on GitHub
v0.31.0
🚨 Breaking Changes
-
Remove
browser
from allowed pools insidepoolMatchGlob
config option. Please, use Vitest workspaces for running tests in the browser. -
Move assertion declarations to expect package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3294 (cf3af)
- The change should be minor:
- declare namespace Vi { + declare module 'vitest' { interface Assertion<T = any> extends CustomMatchers<T> {} interface AsymmetricMatchersContaining extends CustomMatchers {} }
🚀 Features
- Update mock implementation to support ESM runtime, introduce "vi.hoisted" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3258 (0c09a)
- Bypass ESM import order restriction with
vi.hoisted
to run code before imports are executed:
vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1)))
vi.mock
:const { mockedMethod } = vi.hoisted(() => { return { mockedMethod: vi.fn() } }) vi.mock('./path/to/module.js', () => { return { originalMethod: mockedMethod } })
- Bypass ESM import order restriction with
- Add repeat method to tests - by @samkevin1 in https://github.com/vitest-dev/vitest/issues/2652 (7c8f0)
- Add an option to hide skipped test lines - by @g4rry420 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2745 (9bdb1)
- coverage: Watermarks for c8 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3254 (730af)
- ui: Add html coverage - by @userquin and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3071 (e24cd)
-
watch: Test run cancelling, feat:
--bail
option for cancelling test run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3163 (8d460)
🐞 Bug Fixes
- Don't call global setup teardown twice - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3188 (ba3d1)
- Reporter to log version before provider initalizations - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3131 (481b1)
- Throw an error if Vitest cannot access its internal state - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3250 (fbb14)
- Warning suppression broken - by @IceQub3 in https://github.com/vitest-dev/vitest/issues/3270 and https://github.com/vitest-dev/vitest/issues/3271 (036de)
- Show correct diff in "toHaveBeenCalledWith" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3289 (19fcd)
- Don't print esm warning, if package name is not found - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3292 (62c14)
- Support exactOptionalPropertyTypes - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3293 (ba81d)
- Don't inline vite hmr and rollup types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3291 (1f118)
-
browser:
- Failing to load vitest/utils - by @userquin in https://github.com/vitest-dev/vitest/issues/3190 (78bad)
-
coverage:
-
thresholdAutoUpdate
to work withperFile
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3182 (29eeb) - Throw error if fail to load built-in provider - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3217 (0a287)
- Stackblitz hangs with c8 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3225 (d9fda)
- C8 to ignore vite's generated helpers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3241 (21942)
- Workspaces c8 source maps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3226 (efce3)
-
-
docs:
- Correct typo and broken link to WebdriverIO - by @nathanbabcock in https://github.com/vitest-dev/vitest/issues/3275 (c7da1)
-
spy:
- Update to set initial implementation through normal logic - by @Codex- in https://github.com/vitest-dev/vitest/issues/3260 and https://github.com/vitest-dev/vitest/issues/3263 (c759a)
-
vite-node:
- Circular imports - by @antfu in https://github.com/vitest-dev/vitest/issues/3196 (cbb59)
- Add missing
import.meta.hot.send
mock - by @antfu (b1624)
-
vitest:
- Also check for vite relative to vitest package - by @JoshuaKGoldberg and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3274 (a3393)
-
watch:
- Run test files when added to filesystem - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3189 (7b2c8)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
Edited by Renovate Bot