Releases: vitest-dev/vitest
Releases · vitest-dev/vitest
v2.0.0-beta.3
🚨 Breaking Changes
- Don't exit process if config failed - by @sheremet-va in #5715 (f232f)
🚀 Features
- Remove deprecated options - by @sheremet-va in #5696 (5c308)
- Add blob reporter - by @sheremet-va in #5663 (e2053)
- Add expect.poll utility - by @sheremet-va in #5708 (e2e0f)
- browser: Add commands to communicate betweens server and the browser - by @sheremet-va in #5097 (aa431)
🐞 Bug Fixes
- browser: Display UI - by @sheremet-va (d41e4)
View changes on GitHub
v2.0.0-beta.2
🚨 Breaking Changes
- Change default
pool
to'forks'
- by @AriPerkkio in #5047 (7f8f9)
View changes on GitHub
v2.0.0-beta.1
🚨 Breaking Changes
- Remove the empty suite from the runner - by @sheremet-va in #5435 (dbbbe)
- Remove --segfault-retry - by @sheremet-va in #5514 (ed60e)
- Run suite hooks in a stack - by @sheremet-va in #5609 (1277d)
- Enable
coverage.ignoreEmptyLines
by default - by @AriPerkkio in #5543 (31994) - Add correct location and snapshot fields in json reporter - by @sheremet-va in #5434 (bcccc)
- Update dependency chai to v5 - by @renovate[bot] and @sheremet-va in #5135 (73646)
- Remove watchExclude - by @patak-dev in #5177 (d7371)
🚀 Features
- Pretty print diffs coming from cause - by @dubzzz in #5660 (6faf8)
- Allow import statement as vi.mock path for better IDE support - by @sheremet-va in #5690 (a99a1)
🐞 Bug Fixes
- Print console statements in vmThreads - by @sheremet-va in #5678 (34a80)
- expect: Fix immutable.js iterable equality - by @hi-ogawa in #5692 (1532c)
View changes on GitHub
v1.6.0
🚀 Features
- Support standalone mode - by @sheremet-va in #5565 (bdce0)
- Custom "snapshotEnvironment" option - by @sheremet-va in #5449 (30f72)
- benchmark: Support comparing benchmark result - by @hi-ogawa and @sheremet-va in #5398 (f8d3d)
- browser: Allow injecting scripts - by @sheremet-va in #5656 (21e58)
- reporter: Support
includeConsoleOutput
andaddFileAttribute
in junit - by @hi-ogawa in #5659 (2f913) - ui: Sort items by file name - by @btea in #5652 (1f726)
🐞 Bug Fixes
- Keep order of arguments for .each in custom task collectors - by @sheremet-va in #5640 (7d57c)
- Call
resolveId('vitest')
afterbuildStart
- by @hi-ogawa in #5646 (f5faf) - Hash the name of the file when caching - by @sheremet-va in #5654 (c9e68)
- Don't panic on empty files in node_modules - by @sheremet-va (40c29)
- Use
toJSON
for error serialization - by @hi-ogawa in #5526 (19a21) - coverage:
- Exclude
*.test-d.*
by default - by @MindfulPol in #5634 (bfe8a) - Apply
vite-node
's wrapper only to executed files - by @AriPerkkio in #5642 (c9883)
- Exclude
- vm:
- Support network imports - by @sheremet-va in #5610 (103a6)
🏎 Performance
- Improve performance of forks pool - by @sheremet-va in #5592 (d8304)
- Unnecessary rpc call when coverage is disabled - by @AriPerkkio in #5658 (c5712)
View changes on GitHub
v1.5.3
🐞 Bug Fixes
- Use package.json name for a workspace project if not provided - by @sheremet-va in #5608 (48fba)
- Backport jest iterable equality within object - by @sukovanej in #5621 (30e5d)
- browser: Support benchmark - by @hi-ogawa in #5622 (becab)
- reporter: Use default error formatter for JUnit - by @hi-ogawa in #5629 (20060)
View changes on GitHub
v1.5.2
🐞 Bug Fixes
- Check for null before storing in weakmap - by @sheremet-va (ce368)
View changes on GitHub
v1.5.1
🚀 Features
- api:
startVitest()
to acceptstdout
andstdin
- by @AriPerkkio in #5493 (780b1)- This is listed as a feature, but it doesn't increase the minor version because
startVitest
API is experimental and doesn't follow semver.
- This is listed as a feature, but it doesn't increase the minor version because
🐞 Bug Fixes
- Close vite servers on all resolved projects - by @surc54 in #5544 (413ec)
- Fix default
import.meta.env.PROD: false
- by @hi-ogawa in #5561 (9c649) - Resolve cwd correctly when initiating projects - by @sheremet-va in #5582 (ec9d7)
- Always run
onTestFinished
in reverse order - by @sheremet-va in #5598 (23f29) - browser:
- coverage:
- Fix bundling of
v8-to-istanbul
- by @AriPerkkio in #5549 (df6a4) - Prevent crash when
cleanOnRerun
is disabled - by @AriPerkkio in #5540 (ea3c1) thresholds
to compare files relative to root - by @AriPerkkio in #5574 (80265)
- Fix bundling of
- expect:
- vitest:
- Fix false positive file filter match with leading slash - by @hi-ogawa in #5578 (316eb)
- Watch the output directory correctly - by @sheremet-va in #5584 (e40f9)
- StubEnv casts boolean on PROD/SSR/DEV - by @sheremet-va in #5590 (4da88)
View changes on GitHub
v1.5.0
🚀 Features
- Add configuration for diff truncation - by @willieho in #5073 and #5333 (6797b)
- Remove unrelated noise from diff for toMatchObject() - by @geersch in #5364 (99276)
- Allow custom host for --inspect and --inspect-brk - by @sheremet-va in #5509 (61572)
- coverage: V8 to ignore empty lines, comments, types - by @AriPerkkio in #5457 (10b89)
🐞 Bug Fixes
describe
calls not taking generic type parameters - by @aryaemami59 in #5415 (16bac)- Prevent hang when
process
is mocked - by @AriPerkkio in #5430 (0ec4d) - Don't check for "node:internal/console/" in console interceptor in case the environment is not Node.js - by @sheremet-va (87d36)
- The value received by toMatch should be a string - by @btea in #5428 (67485)
- Increase stack trace limit for location, don't hardcode suite position - by @sheremet-va in #5518 (04b23)
- benchmark:
- expect:
- types:
- Pass correct type for suite factory - by @sheremet-va in #5437 (26718)
- utils:
- vite-node:
- vitest:
- Correctly send console events when state changes - by @sheremet-va (3463f)
- Initiate FakeTimers on demand - by @sheremet-va in #5450 (e4e93)
- Check unhighlighted code for code frame line limit - by @hi-ogawa in #5465 (6ae7e)
- Correctly filter by parent folder - by @sheremet-va in #5408 (91b06)
- Close inspector immediately if run is canceled - by @sheremet-va in #5519 (b8006)
- workspace:
- Set CWD to config directory, allow overriding local .env - by @sheremet-va in #5476 (d4003)
View changes on GitHub
v1.4.0
🚀 Features
- Throw error when using snapshot assertion with
not
- by @fenghan34 in #5294 (b9d37) - Add a flag to include test location in tasks - by @sheremet-va in #5342 (d627e)
- cli:
- Support wildcards in
--project
option - by @fenghan34 in #5295 (201bd)
- Support wildcards in
- config:
- Add
shuffle.files
andshuffle.tests
options - by @fenghan34 in #5281 (356db) - Deprecate
cache.dir
option - by @fenghan34 in #5229 (d7e8b)
- Add
- coverage:
- Support
--changed
option - by @AriPerkkio in #5314 (600b4)
- Support
- vitest:
🐞 Bug Fixes
- Repeatable
--project
option - by @fenghan34 in #5265 (d1a06) --inspect-brk
to pause before execution - by @AriPerkkio in #5355 (e77c5)- Correct locations in test.each tasks - by @sheremet-va (4f6e3)
- api:
- Use resolvedUrls from devserver - by @saitonakamura and @hi-ogawa in #5289 (2fef5)
- browser:
- coverage:
- Expensive regexp hangs v8 report generation - by @AriPerkkio in #5259 (d68a7)
- V8 to ignore type-only files - by @AriPerkkio in #5328 (c3eb8)
- Respect source maps of pre-transpiled sources - by @AriPerkkio in #5367 (6eda4)
- Prevent
reportsDirectory
from removing user's project - by @AriPerkkio in #5376 (07ec3)
- expect:
- forks:
- Wrap
defines
to supportundefined
values - by @AriPerkkio in #5284 (5b58b)
- Wrap
- typecheck:
- ui:
- vitest:
- Loosen
onConsoleLog
return type - by @hi-ogawa in #5337 (6d1b1) - Ensure restoring terminal cursor on close - by @hi-ogawa in #5292 (0bea2)
- Ignore timeout on websocket reporter rpc - by @sheremet-va (38119)
- Correctly override api with --no-api flag - by @sheremet-va in #5386 (51d1d)
- Logs in
beforeAll
andafterAll
- by @fenghan34 in #5288 (ce5ca)
- Loosen
- workspace:
- Throw error when browser mode and
@vitest/coverage-v8
are used - by @AriPerkkio in #5250 (29f98)
- Throw error when browser mode and
View changes on GitHub
v1.3.1
🚀 Features
- vitest: Expose parseCLI method - by @sheremet-va in #5248 (c793a)
- This feature is not affected by SemVer because it is part of an experimental API.
🐞 Bug Fixes
- Add task tests iteratively - by @DerYeger in #5235 (38155)
- coverage: Ignore generated TS decorators - by @AriPerkkio and @sheremet-va in #5206 (a2804)
- ui: Auto reload coverage iframe after test run - by @hi-ogawa in #5242 (5376d)