Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-06-02 | 10.5 kB | |
v3.2.0 source code.tar.gz | 2025-06-02 | 21.4 MB | |
v3.2.0 source code.zip | 2025-06-02 | 22.3 MB | |
Totals: 3 Items | 43.7 MB | 0 |
🚀 Features
- Provide
ctx.signal
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7878 (e761f) - Support custom colors for
test.name
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7809 (4af5d) - Add
vi.mockObject
to automock any object - by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7761 (465bd) - Introduce
watchTriggerPatterns
option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7778 (a0675) - Deprecate
workspace
in favor ofprojects
- by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7923 (41beb) - Explicit Resource Management support in mocked functions - by @EskiMojo14 in https://github.com/vitest-dev/vitest/issues/7927 (b67d3)
- Add
sequence.groupOrder
option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7852 (d1a1d) - Initial support for Temporal equality - by @dirkluijk in https://github.com/vitest-dev/vitest/issues/8007 (52bd7)
- Support Vite 7 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8003 (1716b)
- Track module execution totalTime and selfTime - by @abrenneke in https://github.com/vitest-dev/vitest/issues/8027 (95961)
- Annotation API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7953 (b03f2)
- browser:
- Implement
connect
option forplaywright
browser provider - by @egfx-notifications and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7915 (029c0) - Add
screenshot.save
option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7777 (d9f51) - Custom locators API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7993 (e6fbd)
- coverage:
- V8 experimental AST-aware remapping - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7736 (78a3d)
- reporter:
- Add
onWritePath
option togithub-actions
- by @nwalters512 and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/8015 (abd3b) - vitest:
- Allow per-file and per-worker fixtures - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7704 (9cbfc)
🐞 Bug Fixes
- Replace
micromatch
withpicomatch
- by @sapphi-red in https://github.com/vitest-dev/vitest/issues/7951 (df076) - Try to catch unhandled error outside of a test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7968 (46421)
- Generate a separate config for "vitest init browser" instead of a workspace file - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7934 (e84e2)
- Switch ExpectStatic
any
types toAsymmetricMatcher<unknown>
, withDeeplyAllowMatchers<T>
- by @JoshuaKGoldberg in https://github.com/vitest-dev/vitest/issues/7016 (8ec44) - Remove unused exports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7618 (33d05)
- Throw an error if typechecker failed to spawn - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7990 (0e960)
- Ignore non-string
stack
properties - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7995 (330f9) - Apply browser CLI options only if the project has the browser set in the config already - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7984 (70358)
- Ensure errors keep their message and stack after
toJSON
serialisation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8053 (3bdf0) - browser:
- Resolve FS commands relative to the project root - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7896 (69ac9)
- Run tests serially if provider doesn't provide a mocker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8032 (227a9)
- Resolve
upload
files relative to the project root - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8042 (b9a31) - Await mocker invalidation to avoid race condition with "mock wasn't registered" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8021 (b34ff)
- Share vite cache with the project cache - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8049 (0cbad)
- Add
this
type tolocators.extend
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8069 (70fb0) - cache:
- Preserve test results from previous runs - by @macko911 in https://github.com/vitest-dev/vitest/issues/8043 (d6ef0)
- cli:
- Add built-in reporters list to --help output - by @pengooseDev in https://github.com/vitest-dev/vitest/issues/7955 (ef6ef)
- Parse
--silent
values properly - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/8055 (8fad7) - coverage:
- Istanbul provider to not use Vite preserved query params - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7939 (a05d4)
- Browser + v8 in source tests missing - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7946 (51cd8)
- In-source test cases excluded - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7985 (407c0)
- dev:
- Fix relay of custom equality testers - by @StefanLiebscher in https://github.com/vitest-dev/vitest/issues/6140 (6dc1d)
- expect:
- Unbundle
@types/chai
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7937 (525f5) - Support type-safe declaration of custom matchers - by @kettanaito and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7656 (e996b)
- reporters:
- Check the test result again when tests are rerunning - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8063 (35e31)
- spy:
- Copy over static properties from the function - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7780 (9b9f0)
- typecheck:
- Don't panic during
vitest list
command - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7933 (ba6da) - Avoid creating a temporary tsconfig file when typechecking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7967 (34f43)
- vite-node:
- Add
__vite_ssr_exportName__
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7925 (76091) - vitest:
- Adjust
getWorkerMemoryLimit
priority for vmForks - by @pengooseDev in https://github.com/vitest-dev/vitest/issues/7960 (5a91e) - wdio:
- Don't scale browser in headless mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8033 (c23b0)