Next generation testing framework powered by Vite.
--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)
server.headers
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4890 (55f53)
testNamePattern
config - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4909 (4add9)
objDisplay
default truncate option for test.each
title - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4917 (9ae9d)
process.exit
is called inside the test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4903 (8e6c1)
pool
and poolOptions
on project level - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4765 (e9fe4)
slowTestThreshold
to all reporters - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4876 (1769c)
expect(...).toMatchFileSnapshot()
matcher. - by @zmullett, Zac Mullett and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4839 (b8140)
Promise
in mockImplementation
if it's not in the function signature - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4859 (072e0)
vi.mock
is called - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4862 (e12a5)
memoryLimit
- by @inottn and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4802 (70e8a)
inline: true
is set - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4815 (8f622)
--no-parallelism
- by @bonyuta0204 in https://github.com/vitest-dev/vitest/issues/4831 (5053a)
skip
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4814 (19faf)
beforeAll/afterAll
errors in junit reporter - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4819 (2baea)
--workspace
option, fix root resolution in workspaces - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4773 (67d93)
--no-file-parallelism
, --maxWorkers
, --minWorkers
flags - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4705 (fd5d7)
--no-isolate
flag to improve performance, add documentation about performance - by @sheremet-va, @AriPerkkio and Pascal Jufer in https://github.com/vitest-dev/vitest/issues/4777 (4d55a)
--exclude
CLI flag - by @Namchee and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4279 (f859e)
toHaveProperty
assertion error diff - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4734 (f8f70)
defineWorkspace
fix intellisense and report type errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4743 (9cc36)
The previous release was built incorrectly and didn't include the performance fix. This release fixes that.
--coverage.all=false
resolved incorrectly - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4697 (a7931)
log-update
to v5 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4711 (13ff9)
log-update
to v5 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4711 (13ff9)
stripSnapshotIndentation
for thrown snapshot - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4663 (74820)
URL
equality check only when URL
is available - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4670 (43783)
peerDependencies
versions - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4654 (42070)
Vitest 1.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
pool
and poolOptions
, remove old flags - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4172 (114a9)
child_process
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3925 (8b4a4)
vitest
peer dependency range for sub packages - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4299 (cd03c)
expect().toContain()
can handle classList, Node.contains, and any array-like structure. This means you cannot use it to check if one object is a subset of another - use expect().toMatchObject()
in that case - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4239 (ce84f)
transformMode
and workspace project based source maps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4309 (28109cc)
coverage.all
by default - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4265 (5a741)
/* v8 ignore...
ignore hints - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4573 (f9e4a)
expect.closeTo
api - by @Dunqing and golebiowskib in https://github.com/vitest-dev/vitest/issues/4260 (7f91c)
nextTick
mocking error message to mention correct config option - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4215 (98fe3)
expect
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4405 (9fe38)
Error
instance for thrown snapshot - by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4396 (ac309)
retry
and bail
from test config file - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4530 (94f9a)
pretty-format
as a sibling dependency - by @nicojs in https://github.com/vitest-dev/vitest/issues/4590 (ed50a)
stdin
when in run mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4310 (fc51a)
pool
and poolMatchGlobs
in defineConfig - by @InfiniteXyy in https://github.com/vitest-dev/vitest/issues/4282 (9112c)
thresholdAutoUpdate
to detect zero limits - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4287 (a29fe)
Object.freeze
breaks toEqual
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/4303 (a4501)
error
option from TaskResult - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4313 (4cee6)
vi.hoisted
if assigned - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4285 (ff93a)
log-update
v9 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4390 (ba1df)
all: true
instruments already instrumented files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4552 (d1e1b)