v1.0.0-beta.3
版本发布时间: 2023-10-27 20:45:25
vitest-dev/vitest最新发布版本:v2.1.0-beta.6(2024-08-20 21:19:10)
🚨 Breaking Changes
- Set
vitest
peer dependency range for sub packages - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4299 (cd03c) - Bump minimum node version to 18 and match Vite 5 requirement - by @ghiscoding in https://github.com/vitest-dev/vitest/issues/4296 (263b7)
- Remove deprecated node loader - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4371 (29299)
- Move browser providers to @vitest/browser package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4364 (5cdeb)
-
coverage:
- Use
transformMode
and workspace project based source maps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4309 (28109cc)
- Use
🚀 Features
- Update magic-string - by @bluwy in https://github.com/vitest-dev/vitest/issues/4345 (fde18)
-
benchmark:
- Move importTinybench to runner - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4376 (c36d2)
-
vite-node:
- Support import.meta.hot.off for vite 5 - by @bluwy in https://github.com/vitest-dev/vitest/issues/4315 (01b1c)
-
vitest:
- Run typecheck during tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4324 (a1aad)
- Filter stacktraces - by @clarkf in https://github.com/vitest-dev/vitest/issues/1999 and https://github.com/vitest-dev/vitest/issues/4338 (6b734)
🐞 Bug Fixes
- Export VitestUtils interface - by @fbritoferreira in https://github.com/vitest-dev/vitest/issues/4301 (b1439)
- Assertion diff message handle non-writable sub-properties - by @bfamchon in https://github.com/vitest-dev/vitest/issues/4278 (7e1a0)
-
cli:
- Do not capture
stdin
when in run mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4310 (fc51a)
- Do not capture
-
config:
- Type issue of
pool
andpoolMatchGlobs
in defineConfig - by @InfiniteXyy in https://github.com/vitest-dev/vitest/issues/4282 (9112c)
- Type issue of
-
coverage:
-
thresholdAutoUpdate
to detect zero limits - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4287 (a29fe)
-
-
expect:
-
Object.freeze
breakstoEqual
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/4303 (a4501) - Publish semantically correct chai types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4322 (80a70)
-
-
runner:
- Nested tests should throw errors - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4262 (8ac9f)
- Removes deprecated
error
option from TaskResult - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4313 (4cee6)
-
vitest:
- Run globalSetup from the root config even if it's not in a workspace - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4325 (4293e)