Browser running for Vitest
Last release 9 days ago
18 Aug 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
233 releases ยท first in 2022
Release timeline
233 releases since 2022Releases
- 0.30.111 Apr 2023
Release notes
Open source โ๐ Bug Fixes
- Do not rely on global
performanceandAggregateError- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3171 <samp>(cce45)</samp> - Allow workspace without a config in the root - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3173 <samp>(06852)</samp>
test.eachrespectschaiConfig- by @sheremet-va <samp>(4f6c1)</samp>- Use relative paths in source map's "sources" field - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3177 <samp>(6b1b4)</samp>
- types:
- Allow augmenting jest namespace for custom assertions - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3169 <samp>(905ec)</samp>
- Publish utils and snapshot .d.ts files for typescript - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3172 <samp>(7af64)</samp>
- snapshot:
toMatchFileSnapshotensure dir exists - by @antfu in https://github.com/vitest-dev/vitest/issues/3155 <samp>(31168)</samp>- Improve
skipWritingcheck - by @antfu <samp>(5436c)</samp> - Normalize EOL for
toMatchFileSnapshot- by @antfu in https://github.com/vitest-dev/vitest/issues/3164 <samp>(df3f2)</samp>
View changes on GitHub
- Do not rely on global
- 0.30.09 Apr 2023
Release notes
Open source โ๐จ Breaking Changes
- Remove tinyspy internal properties on Vitest spies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3069 <samp>(2f1dc)</samp>
- Only support Node.js 14.18.0 or newer - by @danez in https://github.com/vitest-dev/vitest/issues/2985 <samp>(287dc)</samp>
- Use "concordance" package to display diff instead of using custom diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2828 <samp>(44630)</samp>
- Move snapshot implementation into @vitest/snapshot - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3032 <samp>(6aff0)</samp>
- Bump coverage packages vitest peer dependency - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3126 <samp>(be1bf)</samp>
- Add workspace support - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3103 <samp>(b9d1a)</samp>
- Experimental optimizer introduced in 0.29.0 is temporarily disabled.
๐ Features
- Gzip html reporter's metadata - by @7rulnik in https://github.com/vitest-dev/vitest/issues/3113 <samp>(7856e)</samp>
- Add chai config - by @btea in https://github.com/vitest-dev/vitest/issues/3066 <samp>(6fcba)</samp>
- snapshot: Introduce
toMatchFileSnapshotand auto queuing expect promise - by @antfu in https://github.com/vitest-dev/vitest/issues/3116 <samp>(bdc06)</samp>
๐ Bug Fixes
- Resolve reporters passed down to the CLI relative to the running directory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3097 <samp>(93c7e)</samp>
- Don't show "diff" in "serialized error" section - by @sheremet-va <samp>(326b2)</samp>
- Convert '--single-thread' and '--inspect' cli args to boolean - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3111 <samp>(83a9a)</samp>
- Stack trace point to incorrect file - by @ChenKS12138 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3004 and https://github.com/vitest-dev/vitest/issues/3115 <samp>(5cee4)</samp>
- Run benchmarks sequentially - by @thecodrr in https://github.com/vitest-dev/vitest/issues/2004 and https://github.com/vitest-dev/vitest/issues/3151 <samp>(430b4)</samp>
View changes on GitHub
- 0.29.828 Mar 2023
Release notes
Open source โ๐ Features
- Allow accessing "vi" methods without context, don't fail when mocker is not available - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3047 <samp>(1531c)</samp>
- Show browser console in the terminal - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3048 <samp>(ee6f5)</samp>
- Playwright as browser provider - by @Aslemammad and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3079 <samp>(9dc69)</samp>
- Implement
istanbulcoverage support for browser testing - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3040 <samp>(0f44d)</samp>
๐ Bug Fixes
- Add generic to expect.objectContaining type - by @ArtyMaury in https://github.com/vitest-dev/vitest/issues/3053 <samp>(69d2c)</samp>
- Do not fail, when primitive error is thrown - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3074 <samp>(6efe6)</samp>
- Handle cloning proxied classes w/ enumerable getters - by @tgriesser in https://github.com/vitest-dev/vitest/issues/3026 <samp>(196a0)</samp>
- Spy on popup apis like alert - by @Aslemammad and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3076 <samp>(280ad)</samp>
- Report coverage even when no tests found - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3091 <samp>(2cb91)</samp>
View changes on GitHub
- 0.29.720 Mar 2023
Release notes
Open source โ๐ Bug Fixes
- Import @vite/client in browser code for handling optimizer - by @sheremet-va <samp>(20c51)</samp>
View changes on GitHub
- 0.29.620 Mar 2023
Release notes
Open source โ๐ Bug Fixes
- Bundle UI with @vitest/browser - by @sheremet-va <samp>(14091)</samp>
View changes on GitHub
- 0.29.520 Mar 2023
Release notes
Open source โ๐ Bug Fixes
- browser: Relax vitest peer dependency - by @cexbrayat in https://github.com/vitest-dev/vitest/issues/3039 <samp>(865d1)</samp>
View changes on GitHub
- 0.29.420 Mar 2023
Release notes
Open source โ๐ Features
--test-timeoutCLI argument - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3019 <samp>(63c62)</samp>- Add an option to control Vitest pool with filepath - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3029 <samp>(c7f0c)</samp>
- Process timeout to log names of stuck test files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3031 <samp>(0ddf7)</samp>
- Support relative path in html report - by @poyoho and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2695 <samp>(a7680)</samp>
- Webdriverio (+ custom providers) integration for browser mode - by @Aslemammad, Christian Bromann, @sheremet-va, @userquin and @dammy001 in https://github.com/vitest-dev/vitest/issues/2999 <samp>(9cdc8)</samp>
๐ Bug Fixes
- Show correct line numbers in stack trace when using vi.resetModules() - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3020 <samp>(35730)</samp>
- Mocking value proxy filter Symbol static properties - by @ChpShy in https://github.com/vitest-dev/vitest/issues/3036 <samp>(0cf44)</samp>
- Escape XML in error stack trace when using junit reporter - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3038 <samp>(cc577)</samp>
View changes on GitHub
- 0.29.315 Mar 2023
Release notes
Open source โ๐ Features
- Use custom colors implementation instead of picocolors - by @sheremet-va <samp>(427b0)</samp>
- Uncaught errors to indicate env teardown - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2982 <samp>(1fe82)</samp>
- config: Add an option to run setupFiles in sequence - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3008 <samp>(c2e25)</samp>
๐ Bug Fixes
- Console log not visible - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2943 <samp>(02808)</samp>
- Remove duplicate execArgv when deps.registerNodeLoader: true - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2965 <samp>(a1954)</samp>
- Prevent running test cases timers after environment teardown - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2971 <samp>(bde75)</samp>
- Don't mark setupFiles as test files, if experimentaOptimizer is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2974 <samp>(819c6)</samp>
- Config errors not visible - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2995 <samp>(f01c7)</samp>
- --inspect to work inside workers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2983 <samp>(36087)</samp>
- types: Use
anyas default value for TArgs in vi.fn() - by @jessevanassen in https://github.com/vitest-dev/vitest/issues/2947 <samp>(1bdcc)</samp>
๐ Performance
- reporters: Overall improvements - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3006 <samp>(22ca0)</samp>
View changes on GitHub
- 0.29.228 Feb 2023
Release notes
Open source โ๐ Bug Fixes
- Optimize dependencies in setup files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2935 <samp>(c169f)</samp>
- coverage: C8 provider to work when isolate:false - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2929 <samp>(86538)</samp>
View changes on GitHub
- 0.29.125 Feb 2023
Release notes
Open source โ๐ Bug Fixes
- Wait for optimized dependency to be bundled in non-pnpm package managers - by @sheremet-va <samp>(d2460)</samp>
View changes on GitHub
- 0.29.025 Feb 2023
Release notes
Open source โThis release makes some significant changes to how tests are running. If you were using
--no-threadsbefore, you might consider enabling--single-threadinstead (because your tests are now running inchild_processinstead of a worker thread) or try our new performance optimization feature (discussed later). If you were relying on API that was not available inside a worker (likeprocess.chdir(), you can now use this option.One of the potential breaking bug fixes is that environments do not share the same global scope anymore if you run them with
--no-isolate,--no-threadsor--single-thread- you might need to update your setup files if you were relying on a global variable before.If you had performance issues on large code bases before, try the new
deps.experimentalOptimizeroption instead of disabling threads. Feedback is welcome!One of the breaking changes includes adding a link to snapshots inside snapshot files, meaning you will need to update all your snapshots.
๐จ Breaking Changes
- Vitest as peer dependency for coverage packages - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2836 <samp>(94247)</samp>
- Coverage-c8 to use V8 profiler directly instead of
NODE_V8_COVERAGE- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2786 <samp>(095c6)</samp> - Add a link to the comment at the top of the snapshot file - by @btea in https://github.com/vitest-dev/vitest/issues/2867 <samp>(615e1)</samp>
- Always run separate environments in isolation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2860 <samp>(1f858)</samp>
- Tests with
nodeandjsdom(and other environments) now don't share the same global scope, if you run them with--no-isolateor--no-threadsflag. Vitest doesn't provide a way to restore the previous behavior as it is considered a bug.
- Tests with
- Use child_process when --no-threads is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2772 <samp>(7bf54)</samp>
- Tests inside
chid_processmight run longer due to the communication overhead. If you want to restore the previous behavior, use--single-thread.
- Tests inside
๐ Features
- Add test seed to banner - by @btkostner in https://github.com/vitest-dev/vitest/issues/2877 <samp>(bdb39)</samp>
- Use custom source-map-support implementation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2905 <samp>(6ff6c)</samp>
- Add an option to enable Vite optimizer - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2912 <samp>(af8de)</samp>
- coverage:
- Add support for coverage reporter options - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2690 <samp>(f8176)</samp>
- Automatic threshold updating - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2886 <samp>(e1652)</samp>
- spy:
- Implement mock.withImplementation API - by @obadakhalili and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2835 <samp>(610b1)</samp>
- vite-node:
- Cli option for vite mode - by @abarke in https://github.com/vitest-dev/vitest/issues/2893 <samp>(0fc08)</samp>
๐ Bug Fixes
- Wait for console.log to print a message before terminating a worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2861 <samp>(fbc54)</samp>
- Cleanup last mocked cache when call vi.doMock - by @mysteryven in https://github.com/vitest-dev/vitest/issues/2872 <samp>(65d71)</samp>
- Reload changed configuration file on watch mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2889 <samp>(4d277)</samp>
- coverage: Custom providers to work inside worker threads - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2817 <samp>(81604)</samp>
View changes on GitHub
- 0.28.513 Feb 2023
Release notes
Open source โ๐ Features
- Add --script option to vite-node - by @jgoux and @dammy001 in https://github.com/vitest-dev/vitest/issues/2793 <samp>(d3d6b)</samp>
- Inject executor directly into runner - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2858 <samp>(62c43)</samp>
๐ Bug Fixes
- Don't call "afterAll" hooks, if suite was skipped - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2802 <samp>(aa1aa)</samp>
- Always display serialized error, even if it doesn't have stack - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2829 <samp>(ab5f8)</samp>
- Clear mocks between tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2857 <samp>(c420c)</samp>
- expect:
- Check for no 'throw' type in toHaveReturned - by @trivikr in https://github.com/vitest-dev/vitest/issues/2850 <samp>(1164c)</samp>
- Accept array index as number in toHaveProperty - by @trivikr in https://github.com/vitest-dev/vitest/issues/2808 <samp>(8705e)</samp>
๐ Performance
- Don't inline Vitest entry - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2819 <samp>(570c6)</samp>
View changes on GitHub
- 0.28.43 Feb 2023
Release notes
Open source โ๐ Bug Fixes
- Setup correct utils inside asymmetric matchers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2768 <samp>(415c8)</samp>
- Cjs exports has Object.prototype instead of null - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2769 <samp>(4fc49)</samp>
- Duplicate callbacks in vite-node HMR - by @jgoux in https://github.com/vitest-dev/vitest/issues/2792 <samp>(f0333)</samp>
- Do not include source files in
onWatcherStartwhentypecheck.ignoreSourceErrorsis true - by @mascii and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2774 <samp>(d612e)</samp>
View changes on GitHub
- 0.28.327 Jan 2023
Release notes
Open source โ๐ Features
- Allow using atomics to communicate between threads - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2758 <samp>(3679c)</samp>
- Show active filename pattern on CLI - by @AriPerkkio <samp>(a0455)</samp>
- Show active test name pattern on CLI - by @AriPerkkio <samp>(df7c4)</samp>
- Allow
configoption to be false - by @antfu in https://github.com/vitest-dev/vitest/issues/2749 <samp>(c66e3)</samp>
๐ Bug Fixes
- Watch mode's filename pattern to persist on unrelated file changes - by @AriPerkkio <samp>(712ac)</samp>
- Watch mode's filename pattern to persist re-run of failed tests, snapshot updates and testname filter changes - by @AriPerkkio <samp>(1c65a)</samp>
- Dont incorrectly mark run failed if filename pattern excludes previously failed tests - by @AriPerkkio <samp>(61cf9)</samp>
- coverage: Istanbul crashes when no tests were run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2753 <samp>(ebc95)</samp>
๐ Performance
- Don't import vite in worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2759 <samp>(e49c1)</samp>
View changes on GitHub
- 0.28.225 Jan 2023
Release notes
Open source โ๐ Bug Fixes
- Send stderr header log to stderr - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2736 <samp>(998ea)</samp>
- Call afterAll, if beforeAll failed - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2737 <samp>(1904c)</samp>
- vite-node: Don't cache modules with
timestamp: 0- by @danielroe in https://github.com/vitest-dev/vitest/issues/2747 <samp>(e88c0)</samp>
View changes on GitHub
- 0.28.123 Jan 2023
Release notes
Open source โ๐ Bug Fixes
- Remove UI from Vitest dependencies - by @sheremet-va <samp>(b120c)</samp>
View changes on GitHub
- 0.28.023 Jan 2023
Release notes
Open source โ๐จ Breaking Changes
- Don't rely on environment for interopDefault - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2682 <samp>(3f20c)</samp>
- Move test runner into a separate package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2721 <samp>(482b7)</samp>
- To extend text context, you need to augment
@vitet/runnerpackage instead ofvitest
- To extend text context, you need to augment
๐ Bug Fixes
- coverage: C8 to log warning when run in Stackblitz - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2735 <samp>(b6c41)</samp>
View changes on GitHub
- 0.27.321 Jan 2023
Release notes
Open source โ๐ Features
- Throw unhandled exception, if code throws "error" event - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2691 <samp>(6a30c)</samp>
- New
environmentMatchGlobsoption to auto infer env based on glob - by @antfu in https://github.com/vitest-dev/vitest/issues/2714 <samp>(3e142)</samp> - Add basic reporter which allow user to use reporter in ci - by @trim21 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2612 <samp>(5df52)</samp>
- Improve "isCI" check - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2705 <samp>(e6457)</samp>
๐ Bug Fixes
- Show error in the terminal, if "only" flag is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2696 <samp>(24d63)</samp>
- Cpu and heap profiling options for workers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2702 <samp>(c31a0)</samp>
- Show correct number of tests in test summary - by @poyoho in https://github.com/vitest-dev/vitest/issues/2703 <samp>(859e7)</samp>
- Don't terminate workers on Node 14 to not trigger fatal error - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2697 <samp>(db9b6)</samp>
- Allow custom async matchers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2707 <samp>(b5669)</samp>
- Remove setup files from coverage - by @g4rry420 in https://github.com/vitest-dev/vitest/issues/2574 <samp>(488e4)</samp>
reportCoveragecontext can be optional - by @antfu <samp>(4cd1e)</samp>- ENOENT assets when htmldir exists - by @everett1992 in https://github.com/vitest-dev/vitest/issues/2701 <samp>(5a656)</samp>
- Correctly resolve paths relative to root, when used outside of root directory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2687 <samp>(703aa)</samp>
- typecheck: Store tmp tsconfig close to original one - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2660 <samp>(26f91)</samp>
View changes on GitHub
- 0.27.217 Jan 2023
Release notes
Open source โ๐ Features
- Add runAllTimersAsync from sinonjs - by @guillaumeduboc in https://github.com/vitest-dev/vitest/issues/2209 <samp>(40187)</samp>
๐ Bug Fixes
- Document.defaultView references the same window as the global one - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2649 <samp>(1ac4b)</samp>
- Trim input filename and test name - by @btea in https://github.com/vitest-dev/vitest/issues/2650 <samp>(d3dcb)</samp>
- Increase default teardownTimeout - by @sheremet-va <samp>(13e53)</samp>
- Mock css files imported with "require" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2679 <samp>(6c1a2)</samp>
- Don't start watching files in "run" mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2680 <samp>(0a31e)</samp>
- Rerun tests, when setup file is edited - by @mysteryven and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2625 <samp>(019a6)</samp>
- Always show filename for unhandled errors - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2689 <samp>(15aa0)</samp>
- Define property instead of assigning it in vi.stubGlobal - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2685 <samp>(8a1d7)</samp>
- coverage: Watch mode to use
coverage.allonly when all tests are run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2665 <samp>(85096)</samp> - typecheck: Log tests with verbose reporter, correctly show "pass" tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2656 <samp>(61dde)</samp>
- ui: Don't show "connecting" screen in html reporter - by @poyoho in https://github.com/vitest-dev/vitest/issues/2693 <samp>(d8548)</samp>
๐ Performance
- Don't resolve import path, if it was already resolved - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2659 <samp>(45cc3)</samp>
View changes on GitHub
- 0.27.111 Jan 2023
Release notes
Open source โ๐ Features
- Show error, when process.exit is called - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2643 <samp>(866f4)</samp>
- Add more information about unhandler error - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2642 <samp>(1ffb0)</samp>
- Display running processes, if vitest closes with timeout - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2633 <samp>(94968)</samp>
๐ Bug Fixes
- Type issue with spyOn method - by @samkevin1 in https://github.com/vitest-dev/vitest/issues/2365 and https://github.com/vitest-dev/vitest/issues/2582 <samp>(1aaa7)</samp>
- Add missing types in TS project when global is true - by @Sneaken in https://github.com/vitest-dev/vitest/issues/2631 <samp>(4745e)</samp>
- Always report failed test in junit reporter - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2632 <samp>(83da2)</samp>
- Change Vite root, if test.root is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2637 <samp>(efbff)</samp>
- Don't use ownKeys, when interoping a module - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2629 <samp>(a186a)</samp>
- Cut duplicate error in negated toHaveBeenCalled - by @richardboehme in https://github.com/vitest-dev/vitest/issues/2638 <samp>(09d62)</samp>
- Always update last HMR ms on a module - by @sheremet-va <samp>(99676)</samp>
- Terminate workers, when closing process - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2645 <samp>(ece43)</samp>
- coverage:
- Prevent c8 from crashing on invalid sourcemaps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2634 <samp>(0163d)</samp>
- Istanbul provider to use
coverage.extension- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2641 <samp>(7e388)</samp>
View changes on GitHub
- 0.27.09 Jan 2023
Release notes
Open source โ๐จ Breaking Changes
- Deprecate "error" on result, store errors in "errors" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2586 <samp>(e641a)</samp>
- Split vitest into separate packages, but still bundle them for the time being - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2575 <samp>(c8e6f)</samp>
๐ Features
- coverage: report only changed files when using istanbul coverage with watch mode - by @g4rry420 in https://github.com/vitest-dev/vitest/issues/2385 <samp>(bf872)</samp>
๐ Bug Fixes
- Return mock path only when mocked - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2619 <samp>(f8ac2)</samp>
- Allow mocking CJS module with interoped default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2598 <samp>(6b3e3)</samp>
- Avoid random ENOTEMPTY errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2620 <samp>(59766)</samp>
- Always inline assets and modules with special Vite queries - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2617 <samp>(fed1c)</samp>
- cli:
- Allow overrides reporter via cli option - by @mysteryven and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2573 <samp>(894f1)</samp>
- coverage:
- Flaky c8 coverage caused by parallel sourcemap constructing - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2591 <samp>(9a29f)</samp>
- Validate extension, when reporting c8 coverage - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2626 <samp>(74463)</samp>
๐ Performance
- Improve vi.mock performance - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2594 <samp>(09d19)</samp>
View changes on GitHub
- 0.26.31 Jan 2023
Release notes
Open source โ๐ Features
- mock: Expose a
importOriginalhelper to the factory - by @antfu in https://github.com/vitest-dev/vitest/issues/2551 <samp>(853ee)</samp>
๐ Bug Fixes
- Correctly automock nested interoped defaults - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2559 <samp>(a431d)</samp>
- Start tracking module resolution as soon as possible for easier tracking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2560 <samp>(9f41e)</samp>
- Don't hang when mocking module with circular dependency - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2572 <samp>(c479d)</samp>
- Show list of tests when typechecking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2585 <samp>(32a57)</samp>
- api: Make api parse error stacks and return sourcePos in onTaskUpdate - by @adrienbaron in https://github.com/vitest-dev/vitest/issues/2563 <samp>(ef77d)</samp>
- coverage: Env-replacer to remove query params from sourcemaps filenames - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2584 <samp>(dba13)</samp>
View changes on GitHub
- mock: Expose a
- 0.26.221 Dec 2022
Release notes
Open source โ๐ Features
- Project name - by @antfu <samp>(84f98)</samp>
๐ Bug Fixes
- Improve "isInternaRequest" check - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2541 <samp>(2bb9a)</samp>
- Use correct word when printing "long-running" warning - by @simon-abbott in https://github.com/vitest-dev/vitest/issues/2546 <samp>(8dc1c)</samp>
- Pass down diff options - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2545 <samp>(98c94)</samp>
- cli: Respect inline config
dir- by @antfu in https://github.com/vitest-dev/vitest/issues/2550 <samp>(f6b59)</samp>
View changes on GitHub
- 0.26.019 Dec 2022
Release notes
Open source โ๐จ Breaking Changes
- vite-node: Rewrite how vite-node resolves id - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2463 <samp>(58ee8)</samp>
- Correctly interop nested default for external and inlined modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2512 <samp>(084e9)</samp>
- If your environment is
node, Vitest will not resolve invalid named exports (exports that are on "default" property will not magically appear as named exports), unlessdeps.interopDefaultis enabled, or dependency is indeps.inline. This change doesn't affectjsdom,happy-domoredgeenvironments.
- If your environment is
- web-worker: Make web-worker implementation more compatible with spec - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2431 <samp>(c3a63)</samp>
- Messages are now cloned with
structuredClone, if it's available, or fallbacks to a polyfill. - Added support for
SharedWorker
- Messages are now cloned with
๐ Features
- Introduce a native way to set env and globals - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2515 <samp>(b114d)</samp>
- Add html reporter based on Vitest UI - by @poyoho and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2444 <samp>(b8f34)</samp>
- If you have
@vitest/uiinstalled, you can now use'html'reporter to get a beautiful UI to view your test results, inspect module graph and read log messages.
- If you have
๐ Bug Fixes
- Allow assigning new hotContext - by @cometkim in https://github.com/vitest-dev/vitest/issues/2524 <samp>(b4c43)</samp>
View changes on GitHub
- 0.25.813 Dec 2022
Release notes
Open source โ๐ Features
- Add mts, cts files to coverage - by @poyoho and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2492 <samp>(799f9)</samp>
๐ Bug Fixes
- Don't throw unhandled error, if import was caught - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2494 <samp>(0a87e)</samp>
- coverage: Esbuild to preserve legal comments for ignore hints - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2496 <samp>(c85ed)</samp>
View changes on GitHub
- 0.25.710 Dec 2022
Release notes
Open source โ๐ Features
- Support Vite 4 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2470 <samp>(3bb6b)</samp>
๐ Bug Fixes
- Restart on config change crashes - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2481 <samp>(286e9)</samp>
- coverage-istanbul: Clear coverage map after use - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2466 <samp>(e6a18)</samp>
View changes on GitHub
- 0.25.68 Dec 2022
Release notes
Open source โ๐ Bug Fixes
- Expected reversed with actual - by @poyoho in https://github.com/vitest-dev/vitest/issues/2460 <samp>(f02c9)</samp>
- Try to resolve id, if relative path is provided - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2461 <samp>(e9cb4)</samp>
View changes on GitHub
- 0.25.56 Dec 2022
Release notes
Open source โ๐ Features
- ui: Show diff in report panel - by @scarf005 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2406 and https://github.com/vitest-dev/vitest/issues/2423 <samp>(8595c)</samp>
๐ Bug Fixes
- Correctly resolve filename, when running code - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2439 <samp>(2e789)</samp>
- Move sourcemapping source out of the sourcemap - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2443 <samp>(cc13c)</samp>
View changes on GitHub
- 0.25.45 Dec 2022
Release notes
Open source โ๐ Features
- Slow test threshold - by @poyoho and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2396 <samp>(98974)</samp>
- Format test tablename - by @poyoho in https://github.com/vitest-dev/vitest/issues/2405 <samp>(45c5c)</samp>
- Suspend process - by @poyoho in https://github.com/vitest-dev/vitest/issues/2422 <samp>(b8ee8)</samp>
- Format test objects in
eachtitle - by @scarf005 in https://github.com/vitest-dev/vitest/issues/2420 and https://github.com/vitest-dev/vitest/issues/2421 <samp>(1868f)</samp>
๐ Bug Fixes
- Exit with code 1, when type tests fail - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2378 <samp>(98141)</samp>
- Tab affect vi.mock - by @poyoho in https://github.com/vitest-dev/vitest/issues/2402 <samp>(5a3de)</samp>
- Don't escape "\" in diff view - by @poyoho in https://github.com/vitest-dev/vitest/issues/2430 <samp>(7d4e3)</samp>
- Correct test files status in json reporter - by @brzezinskimarcin in https://github.com/vitest-dev/vitest/issues/2417 and https://github.com/vitest-dev/vitest/issues/2419 <samp>(ce931)</samp>
- Export all named CJS exports, if default export is a function - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2435 <samp>(d43f3)</samp>
- Add test attributes to "testsuites" in junit reporter - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2362 <samp>(d0506)</samp>
- DynamicImportSettled also waits for nested imports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2389 <samp>(5098b)</samp>
- Always apply vite ssr source maps - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2433 <samp>(cbf91)</samp>
- Copy-pasting from module graph browser - by @g4rry420 in https://github.com/vitest-dev/vitest/issues/2321 <samp>(8920a)</samp>
- deps: Update dependency strip-literal to v1 - by @renovate[bot] in https://github.com/vitest-dev/vitest/issues/2387 <samp>(824e1)</samp>
- mocker: Set cache before mocking to allow circular dependencies - by @danez in https://github.com/vitest-dev/vitest/issues/2391 <samp>(fd829)</samp>
View changes on GitHub
- 0.25.322 Nov 2022
Release notes
Open source โ๐ Features
- Test.each support string template - by @poyoho in https://github.com/vitest-dev/vitest/issues/2337 <samp>(f7897)</samp>
๐ Bug Fixes
- Junit consistently puts "skipped" inside "testcase" - by @sheremet-va <samp>(f7b27)</samp>
- Detect tests in folders starting with
.- by @sidharthv96 in https://github.com/vitest-dev/vitest/issues/2344 and https://github.com/vitest-dev/vitest/issues/2359 <samp>(c3951)</samp> - cli: Don't override config by setting cli options to undefined - by @rmehner in https://github.com/vitest-dev/vitest/issues/2330 <samp>(6ce3e)</samp>
- coverage: Env-replacer to add filenames into sourcemaps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2338 <samp>(a2e9d)</samp>
- mocker: Clear automocked modules on unmock - by @mcous in https://github.com/vitest-dev/vitest/issues/2353 <samp>(60918)</samp>
View changes on GitHub
- 0.25.214 Nov 2022
Release notes
Open source โ๐ Bug Fixes
- Dates are equal, if both are invalid - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2326
- Don't ignore properties, when put on a default function in CJS context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2325
View changes on GitHub
- 0.25.18 Nov 2022
Release notes
Open source โ๐ Features
- Add
vi.setConfighelper - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2293 - Allow hooks to be executed in a stack or list - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2294
๐ Bug Fixes
- Always rewrite defined jsdom keys - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2290
- Default reporter regression - by @antfu in https://github.com/vitest-dev/vitest/issues/2292
- Don't fail
benchwhen using options - by @poyoho in https://github.com/vitest-dev/vitest/issues/2295
View changes on GitHub
- Add
- 0.25.07 Nov 2022
Release notes
Open source โโ Builtin TypeChecking
In v0.25.0, Vitest allows you to write tests for your types, using
expectTypeOforassertTypesyntaxes. By default all tests inside*.test-d.tsfiles are considered type tests. Runvitest typecheckto run type tests.// my.test-d.ts import { assertType, expectTypeOf } from 'vitest' import { mount } from './mount.js' test('my types work properly', () => { expectTypeOf(mount).toBeFunction() expectTypeOf(mount).parameter(0).toMatchTypeOf<{ name: string }>() // @ts-expect-error name is a string assertType(mount({ name: 42 })) })Learn more at the documentation and this RFC
๐จ Breaking Changes
- Return context in
startVitest()- by @antfu in https://github.com/vitest-dev/vitest/issues/2072
๐ Features
onTestFailedhook - by @antfu in https://github.com/vitest-dev/vitest/issues/2210- Display error frame if present (like Vite) - by @haikyuu and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2257
- Benchmark table report - by @poyoho in https://github.com/vitest-dev/vitest/issues/2179
- Add typechecking functionality - by @sheremet-va and @antfu in https://github.com/vitest-dev/vitest/issues/2107
๐ Bug Fixes
- Clear full screen only in watch mode - by @sheremet-va <samp>(c3d89)</samp>
- Don't serialize symbols and immutables - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2266
- Use --conditions instead of -C - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2267
- Show correct stack trace in errors and console - by @sheremet-va and @antfu in https://github.com/vitest-dev/vitest/issues/2248
- Align
.eachbehavior with jest - by @bartoszgolebiowski and @antfu in https://github.com/vitest-dev/vitest/issues/2064 - Remove undefined values in options - by @g4rry420 and @antfu in https://github.com/vitest-dev/vitest/issues/2281
- coverage: Istanbul provider to preserve implicit else - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2275
View changes on GitHub
- Return context in
- 0.24.51 Nov 2022
Release notes
Open source โ๐ Features
- vite-node: Trigger beforeFullReload / beforePrune / invalidate hook - by @ycmjason in https://github.com/vitest-dev/vitest/issues/2079
๐ Bug Fixes
- Respect folders with dot at the start, when mocking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2244
- Prevent using mocks in rpc - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2254
- Show actual unhandled errors, serialize DOMErrors - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2253
- Load deps reporter - by @poyoho in https://github.com/vitest-dev/vitest/issues/2249
View changes on GitHub
- 0.24.431 Oct 2022
Release notes
Open source โ๐ Features
- vite-node: Don't exit on uncaughtException in watch mode - by @poyoho in https://github.com/vitest-dev/vitest/issues/2186
๐ Bug Fixes
- Add/Update
repositoryproperties inpackage.json- by @silverwind in https://github.com/vitest-dev/vitest/issues/2151 - Ignore benchmark.reporters in getSerializableConfig - by @kainstar in https://github.com/vitest-dev/vitest/issues/2164
- Improve config's default exclude - by @haikyuu and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2188
- Always use node condition - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1919
- Clear terminal output before running tests, show errors in correct order - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2228
- Improve compatibility with native Node CJS resolution - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2226
- Don't use resolved paths if they don't actually exist - by @simon-abbott in https://github.com/vitest-dev/vitest/issues/1868
- cli:
- Set inputNamePattern to RegExp source instead of string - by @rafedramzi in https://github.com/vitest-dev/vitest/issues/2201
- Normalize argument path - by @poyoho in https://github.com/vitest-dev/vitest/issues/2180
- coverage:
- Trim URL parameters from file paths in istanbul coverage - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2232
- Trim URL parameters from file paths in c8 coverage - by @OrestHk and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2181
- reporter:
- Load custom reporter using
executeFile- by @poyoho in https://github.com/vitest-dev/vitest/issues/2184
- Load custom reporter using
- vitest:
- Return detailed error when using toHaveReturnedWith - by @azaleta in https://github.com/vitest-dev/vitest/issues/2163
View changes on GitHub
- 0.24.314 Oct 2022
Release notes
Open source โ๐ Bug Fixes
- build: Build packages before publishing - by @sheremet-va <samp>(3c4a2)</samp>
View changes on GitHub
- 0.24.214 Oct 2022
Release notes
Open source โ๐ Features
- ui: Add tests summary in the dashboard - by @webfansplz and @userquin in https://github.com/vitest-dev/vitest/issues/2133
๐ Bug Fixes
- bench: Throw root cause - by @azaleta and @nickmccurdy in https://github.com/vitest-dev/vitest/issues/2137
- browser: Working again - by @userquin in https://github.com/vitest-dev/vitest/issues/2143
- coverage: Reduce size of leftover v8 reports - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2144
- vite-node: Init the debugger ahead of time to ensure that load dumped code work as expected (fix #2126) - by @await-ovo in https://github.com/vitest-dev/vitest/issues/2127
View changes on GitHub
- 0.24.110 Oct 2022
Release notes
Open source โ๐ Bug Fixes
- Remove work-around from
istanbul-lib-instrument- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2121 - Don't show extra properties for test context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2116
- Parse env options from comments (fix #1962) - by @nickmccurdy in https://github.com/vitest-dev/vitest/issues/1984
- coverage: Fix sourcemaps of uncovered lines - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2122
View changes on GitHub
- Remove work-around from
- 0.24.07 Oct 2022
Release notes
Open source โ๐จ Breaking Changes
- Use type module (revert #1411) - by @bluwy and @sheremet-va in https://github.com/vitest-dev/vitest/issues/1465
- Drop support for Vite 2 - by @antfu and @sheremet-va in https://github.com/vitest-dev/vitest/issues/1928
๐ Features
- benchmark: Todo mode - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/2057
- inline-snapshot: Support comment - by @azaleta in https://github.com/vitest-dev/vitest/issues/2077
๐ Bug Fixes
- Run related test, even if test doesn't have dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2043
- Check for asymmetricMatch before accessing - by @sheremet-va <samp>(75719)</samp>
- Check hook teardown return type, closes #2092 - by @sheremet-va <samp>(cba3f)</samp>
- Don't stop watch mode, if non-object error is thrown, close #2106 - by @sheremet-va <samp>(bd677)</samp>
- Use correct source maps in stacktrace - by @haikyuu in https://github.com/vitest-dev/vitest/issues/2027
- Import CustomEventMap from vite for vite-node - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2124
- jsdom: Use jsdom Blob instead of Node, if jsdom is enabled - by @ChpShy in https://github.com/vitest-dev/vitest/issues/2086
View changes on GitHub
- 0.23.418 Sept 2022
Release notes
Open source โ๐ Features
- Give helpful message, when using vi.mock - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2047
- benchmark: Only mode - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/2039
๐ Bug Fixes
- Move outputFile to benchmark, allow --reporter for benchmark - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2037
- cli: Forward node wasm flags - by @Peeterush in https://github.com/vitest-dev/vitest/issues/2041
- coverage:
istanbul-reportsto supportprojectRoot- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2051
View changes on GitHub
- 0.23.210 Sept 2022
Release notes
Open source โ๐ Features
- Added fastify example - by @irvile in https://github.com/vitest-dev/vitest/issues/1991
- bench: Improve summary - by @antfu <samp>(d0167)</samp>
๐ Bug Fixes
- Update tinybench to 2.1.5 - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/1990
- bench:
- Rank sorting, fix #2006 - by @nickmccurdy in https://github.com/vitest-dev/vitest/issues/2007
- Do not group benchmarks - by @Aslemammad and @antfu in https://github.com/vitest-dev/vitest/issues/2016
View changes on GitHub
- 0.23.15 Sept 2022
Release notes
Open source โ๐ Bug Fixes
- Show diff for errors that contain actual/expected without showDiff - by @IgnusG in https://github.com/vitest-dev/vitest/issues/1966
- Don't fail on running vitest dev (closes #1971) - by @sheremet-va <samp>(3807c)</samp>
- Don't hang when running vitest - by @sheremet-va <samp>(f3025)</samp>
- Define default exports properties as named exports for ESM compatibility - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1979
- Correctly normalize mocked path, if file is named like the folder - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1973
- ui: Display correct line and column for web UI - by @bartoszgolebiowski in https://github.com/vitest-dev/vitest/issues/1972
View changes on GitHub
- 0.23.04 Sept 2022
Release notes
Open source โ๐จ Breaking Changes
- Don't reset modules with --no-isolate - by @sheremet-va and @poyoho in https://github.com/vitest-dev/vitest/issues/1754
- If not processed, CSS Modules return a proxy, scope class names by filename - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1803
- Improve interchangeability with cjs - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1944
- Allow custom environments - by @sheremet-va and @Demivan in https://github.com/vitest-dev/vitest/issues/1963
๐ Features
- Add include option in istanbul coverage - by @warmthdawn in https://github.com/vitest-dev/vitest/issues/1883
- Introduce
retryoption for tests - by @antfu in https://github.com/vitest-dev/vitest/issues/1929 - Add benchmark support with
vitest benchcommand - by @poyoho in https://github.com/vitest-dev/vitest/issues/1029 - coverage: Include json reporter by default - by @poyoho <samp>(faed4)</samp>
- coverage-istanbul: Add "all" option - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/1880
- worker: Always apply custom resolver conditions - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1934
๐ Bug Fixes
- Allow referring to first seen value while automocking - by @simon-abbott in https://github.com/vitest-dev/vitest/issues/1879
- Console.Console is undefined (close: #1877) - by @ahaoboy in https://github.com/vitest-dev/vitest/issues/1878
- Invalidate new worker and its dependencies - by @sun0day in https://github.com/vitest-dev/vitest/issues/1896
- Improve error serialization - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1921
- Clean coverage-c8 tmp before reporting (fix #1917) - by @sun0day in https://github.com/vitest-dev/vitest/issues/1925
- Automock getters and setters - by @simon-abbott and @sheremet-va in https://github.com/vitest-dev/vitest/issues/1903
- Add possibility to filter test files by fileName - by @bartoszgolebiowski and @sheremet-va in https://github.com/vitest-dev/vitest/issues/1915
- Make globalThis more compatible with jest - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1956
- Delete mock in moduleCache when unmock - by @ChpShy in https://github.com/vitest-dev/vitest/issues/1947
- Matcher toHaveProperty actually tests value - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1958
- env-replacer: Don't modify string literals - by @tony19 in https://github.com/vitest-dev/vitest/issues/1943
- istanbul: Disable compact in instrumenter transform - by @poyoho <samp>(80739)</samp>
- reporter: Correct error source position in json report - by @azaleta and @poyoho in https://github.com/vitest-dev/vitest/issues/1909
- reporter-junit: Escape XML when in error message (fix: #1823) - by @ChrisTowles in https://github.com/vitest-dev/vitest/issues/1890
View changes on GitHub
- 0.22.118 Aug 2022
Release notes
Open source โ๐ Features
- Restart vitest on config change - by @antfu <samp>(c663f)</samp>
- Show transform time - by @antfu <samp>(b54a1)</samp>
- vite-node:
moduleCache.invalidateDepTreeutiltity - by @antfu in https://github.com/vitest-dev/vitest/issues/1872
๐ Bug Fixes
- Convert string coverage reporters to array - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/1860
- Explicitly import performance - by @antfu <samp>(870d1)</samp>
View changes on GitHub
- 0.22.015 Aug 2022
Release notes
Open source โ๐จ Breaking Changes
c8coverage support now require peer dependency@vitest/coverage-c8to be installed. Alternatively, you can install@vitest/coverage-istanbulto useistanbulfor coverage instead ofc8.
๐ Features
- Add --no-color to cli - by @jereklas in https://github.com/vitest-dev/vitest/issues/1849
- Support auto retry on Node segfault
--segfault-retry- by @tony19 @antfu in https://github.com/vitest-dev/vitest/issues/1854 - Support
istanbulcoverage provider - by @AriPerkkio and @antfu in https://github.com/vitest-dev/vitest/issues/1676 - cli: Support passing
--inspectand--inspect-brk- by @antfu <samp>(ea80f)</samp>
๐ Bug Fixes
- Handle undefined returns of module mocks, and update migration docs - by @jereklas in https://github.com/vitest-dev/vitest/issues/1763 and https://github.com/vitest-dev/vitest/issues/1830
- Clear pattern when rerun all tests - by @ChpShy in https://github.com/vitest-dev/vitest/issues/1834
- reporter-junit: Remove trailing zeros in duration - by @nieyuyao in https://github.com/vitest-dev/vitest/issues/1842
View changes on GitHub
- 0.21.19 Aug 2022
Release notes
Open source โ๐ Features
- types: Better local test context support - by @Tanimodori in https://github.com/vitest-dev/vitest/issues/1805
๐ Bug Fixes
- Symbol.toStringTag on Module is non-enumerable - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1808
- Tap reporter doesn't throw - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1810
- Add error message when mock is missing export - by @jereklas in https://github.com/vitest-dev/vitest/issues/1819
View changes on GitHub
- 0.21.05 Aug 2022
Release notes
Open source โ๐ Features
- Show stack trace for aggregated errors, show full stack trace - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1777
- Allow timeout in test.each - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1787
- Treat pseudo ESM as ESM with custom loader, disable custom Node Loader by default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1778
- Allow using todo/skip/concurrent with each - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1802
๐ Bug Fixes
- Better bundling of types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1785
- ToHaveProperty should judge object own property - by @ChpShy in https://github.com/vitest-dev/vitest/issues/1795
- Plugins don't think it's watch mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1784
- Gracefully handle unsettable keys during automocking - by @simon-abbott in https://github.com/vitest-dev/vitest/issues/1786
View changes on GitHub
- 0.20.32 Aug 2022
Release notes
Open source โ๐ Features
- Show start time in test summary - by @mikekidder, @sheremet-va and @antfu in https://github.com/vitest-dev/vitest/issues/1734
- types: Add partial flag to mocked TypeScript helper - by @jfrs in https://github.com/vitest-dev/vitest/issues/1739 and https://github.com/vitest-dev/vitest/issues/1742
๐ Bug Fixes
- Add missing per-file option on coverage - by @patrickelectric in https://github.com/vitest-dev/vitest/issues/1775
- Correctly restore globals in env teardown - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1774
- Disable node loader for Yarn PnP - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1773
View changes on GitHub
- 0.20.231 Jul 2022
Release notes
Open source โ๐ Features
- Add deps.registerNodeLoader option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1751
๐ Bug Fixes
- Don't throw in Node 18.6 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1750
View changes on GitHub
- 0.20.131 Jul 2022
Release notes
Open source โ๐ Bug Fixes
- Bundle suppress-warnings - by @sheremet-va <samp>(bd567)</samp>
View changes on GitHub
- 0.20.031 Jul 2022
Release notes
Open source โ๐จ Breaking Changes
- Apply Vite resolving algorithm to node_modules libraries - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1673
๐ Features
- Add option for ignoring unhandled errors - by @DerYeger in https://github.com/vitest-dev/vitest/issues/1678
- vite-node: Allow dumpping the transformed code to debug - by @antfu in https://github.com/vitest-dev/vitest/issues/1723
๐ Bug Fixes
- Don't clear mocks with vi.resetModules, cache normalised mock paths - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1726
- Improve execution time counter - by @antfu <samp>(0d1f1)</samp>
- browser: Wait for files scanning in browser - by @Aslemammad in https://github.com/vitest-dev/vitest/issues/1704
- coverage: Include
cloverreporter by default - by @antfu <samp>(5862e)</samp> - jsdom: Use jsdom ArrayBuffer instead of Node, if jsdom is enabled - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1727
- types: Fix MockedClass typeParams - by @Tanimodori in https://github.com/vitest-dev/vitest/issues/1735
- ui: Do not load graph if never displayed (fix #1602) - by @MPeloquin in https://github.com/vitest-dev/vitest/issues/1719
View changes on GitHub
- 0.19.125 Jul 2022
Release notes
Open source โ๐ Features
- Add mock snapshot serializer - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1717
View changes on GitHub
- 0.19.024 Jul 2022
Release notes
Open source โ๐จ Breaking Changes
- Add CSS styles to DOM - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1690
๐ Features
- Add Playwright example - by @jfgreffier in https://github.com/vitest-dev/vitest/issues/1670
- Add location to json reporter - by @shiradofu in https://github.com/vitest-dev/vitest/issues/1656
- Add alias option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1634
- Init @vitest/browser package - by @antfu, @userquin and @Aslemammad in https://github.com/vitest-dev/vitest/issues/1302
- Make close timeout configurable - by @krishnan-chandra in https://github.com/vitest-dev/vitest/issues/1697
๐ Bug Fixes
- Exclude dist directory from default coverage - by @cexbrayat in https://github.com/vitest-dev/vitest/issues/1664
- Exclude cypress config from default coverage - by @cexbrayat in https://github.com/vitest-dev/vitest/issues/1663
- Works with yarn pnp - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/1667
- Code frame tabs indent (fix: #1679) - by @skarab42 in https://github.com/vitest-dev/vitest/issues/1680
- ToHaveProperty with expect.any (fix: #1675) - by @skarab42 in https://github.com/vitest-dev/vitest/issues/1682
View changes on GitHub