🚀 Features
- Throw error if using inline snapshot inside of
test.each
ordescribe.each
- by @fenghan34 and @sheremet-va in #3360 (7c2f7) - Pass down meta information to Node.js process - by @sheremet-va and @dammy001 in #3449 (e39ad)
- coverage: Add
reportOnFailure
option - by @AriPerkkio and @sheremet-va in #3453 (1988f) - dev: Add moduleDirectories option to the vitest config - by @fooddilsn and @sheremet-va in #3337 (b3602)
🐞 Bug Fixes
- Don't print empty diff - by @sheremet-va in #3437 (32b53)
- Don't restore methods in automocked dependencies - by @sheremet-va in #3438 (d1afd)
- Dot reporter scrollback buffer spam - by @gtm-nayan in #3415 (e6792)
- Gracefully exit when first
SIGINT
is received - by @AriPerkkio in #3407 (a2cc2) rejects
&resolves
breaks with thenable objects - by @fenghan34 in #3456 (4e996)- Prevent
birpc
timeouts whenMath.random
mock is not restored - by @AriPerkkio in #3460 (cd5d5) - Assertion diff message now handle non writable property correctly - by @PCreations in #3422 (f75ab)
- Extend logging of process timeout errors - by @AriPerkkio in #3452 (42643)
- Support requiring files with
less
extension - by @rluvaton in #3465 (4d045) - cli:
- Improve colors used when erroring - by @ghiscoding and @sheremet-va in #3349 (16681)
- runner:
- spy:
- Don't print received calls if there are no calls - by @sheremet-va in #3405 (41e11)
- typecheck:
- Show tsc errors not related to test files - by @sheremet-va in #3441 (a1da5)
- types:
- vite-node:
- Circular import stuck - by @Dunqing in #3418 (632ee)
- Coerce to string in import(dep) - by @jcbhmr and @sheremet-va in #3430 (b72eb)
- Don't remove sourcemap string in source code - by @rxliuli and @sheremet-va in #2918 and #3379 (02dc9)
- Don't externalize "dist" by default - by @sheremet-va in #3446 (306b2)