Releases: vitest-dev/vitest
Releases · vitest-dev/vitest
v2.0.0-beta.10
🚀 Features
- browser: Run tests in parallel in headless mode, add
page.screenshot
method - by @sheremet-va in #5853 (81c42) - runner: Implement
test.for
- by @hi-ogawa and @sheremet-va in #5861 (c2380) - ui: Load module graph on tab selection - by @userquin in #5844 (b117e)
🐞 Bug Fixes
- Vi.waitFor/vi.waitUntil interval is now cleared after it times out - by @pedro00dk in #5875 (04107)
- browser:
- Set server.open to false and move error handling after init - by @sheremet-va in #5845 (47003)
- Show correct prepare time - by @sheremet-va in #5852 (52d54)
- deps:
- forks:
- Resolve
poolOptions.<name>.isolate
fromforks
options - by @AriPerkkio in #5840 (a60a1)
- Resolve
- ui, browser:
- utils:
View changes on GitHub
v2.0.0-beta.9
🐞 Bug Fixes
- browser: Don't optimize Vitest dependencies - by @sheremet-va in #5843 (f15b4)
View changes on GitHub
v2.0.0-beta.8
🚨 Breaking Changes
- Rename indexScripts to orchestratorScripts - by @sheremet-va in #5842 (49f34)
🐞 Bug Fixes
- browser:
- Print correct transformed module graph - by @sheremet-va in #5833 (a7581)
- Use
preview
provider when running in StackBlitz - by @userquin in #5836 (76e13) - Specify entries for correct deps optimization - by @sheremet-va in #5839 (c79b3)
- Allow iframe to load even if there is a custom CSP header - by @sheremet-va in #5841 (caaaf)
View changes on GitHub
v2.0.0-beta.7
🚨 Breaking Changes
- Add meta to json output - by @sheremet-va in #5802 (dd754)
🚀 Features
- browser:
- Support
click
event - by @sheremet-va in #5777 (839c3) - Rename none provider to preview, make it default - by @sheremet-va in #5826 (18310)
- Support
🐞 Bug Fixes
- browser:
- Use iframe id instead of calculating it from filenames - by @sheremet-va in #5823 (34a31)
- Always clean up iframes on rerun - by @sheremet-va in #5827 (087fa)
- Support @testing-library/vue in browser mode out of the box - by @sheremet-va (76b82)
- coverage:
thresholds.autoUpdate
to supportmergeConfig
- by @AriPerkkio in #5818 (7afb3)
- runner:
- Ensure test.each print -0 and -NaN properly - by @pengooseDev in #5806 (9ac8f)
View changes on GitHub
v2.0.0-beta.6
🐞 Bug Fixes
- browser:
- Restore the original viewport when unselecting the preset viewport - by @sheremet-va in #5821 (5ebb3)
- Don't get stuck after the manual page refresh - by @sheremet-va (2220b)
View changes on GitHub
v2.0.0-beta.5
🚨 Breaking Changes
--merge-reports
to support coverage - by @AriPerkkio in #5736 (b7438)- Add promise-based return assertions, do not auto-resolve returned promises - by @sheremet-va in #5749 (5f710)
- Do not exit process if global setup has failed - by @sheremet-va in #5726 (ddb09)
🚀 Features
- Add browser.ui option - by @sheremet-va in #5771 (a5033)
- Add median to
--output-json
- by @Joristdh in #5745 (0766b) - Allow augmenting config.test.env - by @sheremet-va in #5784 (b2469)
- Implement module mocking in browser mode - by @sheremet-va in #5765 (7b2f6)
- Allow configuring expect options in the config - by @sheremet-va in #5729 (fc53f)
- Add an option to print console stack trace - by @sheremet-va in #5720 (e4fe6)
- Add browser frame to UI - by @sheremet-va in #5808 (3796d)
- browser:
- Do not reload the page during watch mode - by @sheremet-va in #5810 (e5b9a)
- Support changing the viewport - by @sheremet-va in #5811 (71851)
- Add browser iframe mouse interaction - by @userquin in #5815 (f29b9)
- ui:
- Render tests in a tree - by @sheremet-va in #5807 (7900f)
🐞 Bug Fixes
- Repeatable
--exclude
option - by @fregante in #5782 (d6700) - Remove browser.fileParallelism - by @sheremet-va in #5790 (b881e)
- Install UI icons - by @sheremet-va (b84f1)
- Remove process.exit if workspace project failed to be created - by @sheremet-va in #5804 (a820e)
- browser:
- coverage:
- Clean up empty coverage reports directory - by @AriPerkkio in #5731 (c469c)
- runner:
- Ensure inner suite { sequential: true } correctly overrides outer suite { concurrent: true } - by @pengooseDev in #5737 (a20e7)
- ui:
- Show correct module graph and project name in a Vitest workspace - by @sheremet-va in #5792 (48c50)
- utils:
View changes on GitHub
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)