Update dependency vitest to ^0.30.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vitest | devDependencies | minor | ^0.25.3 -> ^0.30.0 |
Release Notes
vitest-dev/vitest
v0.30.1
🐞 Bug Fixes
- Do not rely on global
performance
andAggregateError
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3171 (cce45) - Allow workspace without a config in the root - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3173 (06852)
-
test.each
respectschaiConfig
- by @sheremet-va (4f6c1) - Use relative paths in source map's "sources" field - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3177 (6b1b4)
-
types:
- Allow augmenting jest namespace for custom assertions - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3169 (905ec)
- Publish utils and snapshot .d.ts files for typescript - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3172 (7af64)
-
snapshot:
-
toMatchFileSnapshot
ensure dir exists - by @antfu in https://github.com/vitest-dev/vitest/issues/3155 (31168) - Improve
skipWriting
check - by @antfu (5436c) - Normalize EOL for
toMatchFileSnapshot
- by @antfu in https://github.com/vitest-dev/vitest/issues/3164 (df3f2)
-
View changes on GitHub
v0.30.0
🚨 Breaking Changes
- Remove tinyspy internal properties on Vitest spies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3069 (2f1dc)
- Only support Node.js 14.18.0 or newer - by @danez in https://github.com/vitest-dev/vitest/issues/2985 (287dc)
- Use "concordance" package to display diff instead of using custom diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2828 (44630)
- Move snapshot implementation into @vitest/snapshot - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3032 (6aff0)
- Bump coverage packages vitest peer dependency - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3126 (be1bf)
- Add workspace support - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3103 (b9d1a)
- 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 (7856e)
- Add chai config - by @btea in https://github.com/vitest-dev/vitest/issues/3066 (6fcba)
-
snapshot: Introduce
toMatchFileSnapshot
and auto queuing expect promise - by @antfu in https://github.com/vitest-dev/vitest/issues/3116 (bdc06)
🐞 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 (93c7e)
- Don't show "diff" in "serialized error" section - by @sheremet-va (326b2)
- Convert '--single-thread' and '--inspect' cli args to boolean - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3111 (83a9a)
- 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 (5cee4)
- Run benchmarks sequentially - by @thecodrr in https://github.com/vitest-dev/vitest/issues/2004 and https://github.com/vitest-dev/vitest/issues/3151 (430b4)
View changes on GitHub
v0.29.8
🚀 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 (1531c)
- Show browser console in the terminal - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3048 (ee6f5)
- Playwright as browser provider - by @Aslemammad and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3079 (9dc69)
- Implement
istanbul
coverage support for browser testing - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3040 (0f44d)
🐞 Bug Fixes
- Add generic to expect.objectContaining type - by @ArtyMaury in https://github.com/vitest-dev/vitest/issues/3053 (69d2c)
- Do not fail, when primitive error is thrown - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3074 (6efe6)
- Handle cloning proxied classes w/ enumerable getters - by @tgriesser in https://github.com/vitest-dev/vitest/issues/3026 (196a0)
- Spy on popup apis like alert - by @Aslemammad and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3076 (280ad)
- Report coverage even when no tests found - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3091 (2cb91)
View changes on GitHub
v0.29.7
🐞 Bug Fixes
- Import @vite/client in browser code for handling optimizer - by @sheremet-va (20c51)
View changes on GitHub
v0.29.6
🐞 Bug Fixes
- Bundle UI with @vitest/browser - by @sheremet-va (14091)
View changes on GitHub
v0.29.5
🐞 Bug Fixes
- browser: Relax vitest peer dependency - by @cexbrayat in https://github.com/vitest-dev/vitest/issues/3039 (865d1)
View changes on GitHub
v0.29.4
🚀 Features
-
--test-timeout
CLI argument - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3019 (63c62) - Add an option to control Vitest pool with filepath - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3029 (c7f0c)
- Process timeout to log names of stuck test files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3031 (0ddf7)
- Support relative path in html report - by @poyoho and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2695 (a7680)
- 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 (9cdc8)
🐞 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 (35730)
- Mocking value proxy filter Symbol static properties - by @ChpShy in https://github.com/vitest-dev/vitest/issues/3036 (0cf44)
- Escape XML in error stack trace when using junit reporter - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3038 (cc577)
View changes on GitHub
v0.29.3
🚀 Features
- Use custom colors implementation instead of picocolors - by @sheremet-va (427b0)
- Uncaught errors to indicate env teardown - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2982 (1fe82)
- config: Add an option to run setupFiles in sequence - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3008 (c2e25)
🐞 Bug Fixes
- Console log not visible - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2943 (02808)
- Remove duplicate execArgv when deps.registerNodeLoader: true - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2965 (a1954)
- Prevent running test cases timers after environment teardown - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2971 (bde75)
- Don't mark setupFiles as test files, if experimentaOptimizer is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2974 (819c6)
- Config errors not visible - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2995 (f01c7)
- --inspect to work inside workers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2983 (36087)
-
types: Use
any
as default value for TArgs in vi.fn() - by @jessevanassen in https://github.com/vitest-dev/vitest/issues/2947 (1bdcc)
🏎 Performance
- reporters: Overall improvements - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3006 (22ca0)
View changes on GitHub
v0.29.2
🐞 Bug Fixes
- Optimize dependencies in setup files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2935 (c169f)
- coverage: C8 provider to work when isolate:false - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2929 (86538)
View changes on GitHub
v0.29.1
🐞 Bug Fixes
- Wait for optimized dependency to be bundled in non-pnpm package managers - by @sheremet-va (d2460)
View changes on GitHub
v0.29.0
This release makes some significant changes to how tests are running. If you were using --no-threads
before, you might consider enabling --single-thread
instead (because your tests are now running in child_process
instead 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 (like process.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-threads
or --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.experimentalOptimizer
option 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 (94247)
- Coverage-c8 to use V8 profiler directly instead of
NODE_V8_COVERAGE
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2786 (095c6) - Add a link to the comment at the top of the snapshot file - by @btea in https://github.com/vitest-dev/vitest/issues/2867 (615e1)
- Always run separate environments in isolation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2860 (1f858)
- Tests with
node
andjsdom
(and other environments) now don't share the same global scope, if you run them with--no-isolate
or--no-threads
flag. 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 (7bf54)
- Tests inside
chid_process
might 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 (bdb39)
- Use custom source-map-support implementation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2905 (6ff6c)
- Add an option to enable Vite optimizer - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2912 (af8de)
-
coverage:
- Add support for coverage reporter options - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2690 (f8176)
- Automatic threshold updating - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2886 (e1652)
-
spy:
- Implement mock.withImplementation API - by @obadakhalili and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2835 (610b1)
-
vite-node:
- Cli option for vite mode - by @abarke in https://github.com/vitest-dev/vitest/issues/2893 (0fc08)
🐞 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 (fbc54)
- Cleanup last mocked cache when call vi.doMock - by @mysteryven in https://github.com/vitest-dev/vitest/issues/2872 (65d71)
- Reload changed configuration file on watch mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2889 (4d277)
- coverage: Custom providers to work inside worker threads - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2817 (81604)
View changes on GitHub
v0.28.5
🚀 Features
- Add --script option to vite-node - by @jgoux and @dammy001 in https://github.com/vitest-dev/vitest/issues/2793 (d3d6b)
- Inject executor directly into runner - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2858 (62c43)
🐞 Bug Fixes
- Don't call "afterAll" hooks, if suite was skipped - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2802 (aa1aa)
- Always display serialized error, even if it doesn't have stack - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2829 (ab5f8)
- Clear mocks between tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2857 (c420c)
-
expect:
- Check for no 'throw' type in toHaveReturned - by @trivikr in https://github.com/vitest-dev/vitest/issues/2850 (1164c)
- Accept array index as number in toHaveProperty - by @trivikr in https://github.com/vitest-dev/vitest/issues/2808 (8705e)
🏎 Performance
- Don't inline Vitest entry - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2819 (570c6)
View changes on GitHub
v0.28.4
🐞 Bug Fixes
- Setup correct utils inside asymmetric matchers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2768 (415c8)
- Cjs exports has Object.prototype instead of null - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2769 (4fc49)
- Duplicate callbacks in vite-node HMR - by @jgoux in https://github.com/vitest-dev/vitest/issues/2792 (f0333)
- Do not include source files in
onWatcherStart
whentypecheck.ignoreSourceErrors
is true - by @mascii and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2774 (d612e)
View changes on GitHub
v0.28.3
🚀 Features
- Allow using atomics to communicate between threads - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2758 (3679c)
- Show active filename pattern on CLI - by @AriPerkkio (a0455)
- Show active test name pattern on CLI - by @AriPerkkio (df7c4)
- Allow
config
option to be false - by @antfu in https://github.com/vitest-dev/vitest/issues/2749 (c66e3)
🐞 Bug Fixes
- Watch mode's filename pattern to persist on unrelated file changes - by @AriPerkkio (712ac)
- Watch mode's filename pattern to persist re-run of failed tests, snapshot updates and testname filter changes - by @AriPerkkio (1c65a)
- Dont incorrectly mark run failed if filename pattern excludes previously failed tests - by @AriPerkkio (61cf9)
- coverage: Istanbul crashes when no tests were run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2753 (ebc95)
🏎 Performance
- Don't import vite in worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2759 (e49c1)
View changes on GitHub
v0.28.2
🐞 Bug Fixes
- Send stderr header log to stderr - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2736 (998ea)
- Call afterAll, if beforeAll failed - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2737 (1904c)
-
vite-node: Don't cache modules with
timestamp: 0
- by @danielroe in https://github.com/vitest-dev/vitest/issues/2747 (e88c0)
View changes on GitHub
v0.28.1
🐞 Bug Fixes
- Remove UI from Vitest dependencies - by @sheremet-va (b120c)
View changes on GitHub
v0.28.0
🚨 Breaking Changes
- Don't rely on environment for interopDefault - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2682 (3f20c)
- Move test runner into a separate package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2721 (482b7)
- To extend text context, you need to augment
@vitet/runner
package 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 (b6c41)
View changes on GitHub
v0.27.3
🚀 Features
- Throw unhandled exception, if code throws "error" event - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2691 (6a30c)
- New
environmentMatchGlobs
option to auto infer env based on glob - by @antfu in https://github.com/vitest-dev/vitest/issues/2714 (3e142) - 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 (5df52)
- Improve "isCI" check - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2705 (e6457)
🐞 Bug Fixes
- Show error in the terminal, if "only" flag is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2696 (24d63)
- Cpu and heap profiling options for workers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2702 (c31a0)
- Show correct number of tests in test summary - by @poyoho in https://github.com/vitest-dev/vitest/issues/2703 (859e7)
- Don't terminate workers on Node 14 to not trigger fatal error - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2697 (db9b6)
- Allow custom async matchers - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2707 (b5669)
- Remove setup files from coverage - by @g4rry420 in https://github.com/vitest-dev/vitest/issues/2574 (488e4)
-
reportCoverage
context can be optional - by @antfu (4cd1e) - ENOENT assets when htmldir exists - by @everett1992 in https://github.com/vitest-dev/vitest/issues/2701 (5a656)
- Correctly resolve paths relative to root, when used outside of root directory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2687 (703aa)
- typecheck: Store tmp tsconfig close to original one - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2660 (26f91)
View changes on GitHub
v0.27.2
🚀 Features
- Add runAllTimersAsync from sinonjs - by @guillaumeduboc in https://github.com/vitest-dev/vitest/issues/2209 (40187)
🐞 Bug Fixes
- Document.defaultView references the same window as the global one - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2649 (1ac4b)
- Trim input filename and test name - by @btea in https://github.com/vitest-dev/vitest/issues/2650 (d3dcb)
- Increase default teardownTimeout - by @sheremet-va (13e53)
- Mock css files imported with "require" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2679 (6c1a2)
- Don't start watching files in "run" mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2680 (0a31e)
- Rerun tests, when setup file is edited - by @mysteryven and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2625 (019a6)
- Always show filename for unhandled errors - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2689 (15aa0)
- Define property instead of assigning it in vi.stubGlobal - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2685 (8a1d7)
-
coverage: Watch mode to use
coverage.all
only when all tests are run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2665 (85096) - typecheck: Log tests with verbose reporter, correctly show "pass" tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2656 (61dde)
- ui: Don't show "connecting" screen in html reporter - by @poyoho in https://github.com/vitest-dev/vitest/issues/2693 (d8548)
🏎 Performance
- Don't resolve import path, if it was already resolved - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2659 (45cc3)
View changes on GitHub
v0.27.1
🚀 Features
- Show error, when process.exit is called - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2643 (866f4)
- Add more information about unhandler error - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2642 (1ffb0)
- Display running processes, if vitest closes with timeout - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2633 (94968)
🐞 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 (1aaa7)
- Add missing types in TS project when global is true - by @Sneaken in https://github.com/vitest-dev/vitest/issues/2631 (4745e)
- Always report failed test in junit reporter - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2632 (83da2)
- Change Vite root, if test.root is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2637 (efbff)
- Don't use ownKeys, when interoping a module - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2629 (a186a)
- Cut duplicate error in negated toHaveBeenCalled - by @richardboehme in https://github.com/vitest-dev/vitest/issues/2638 (09d62)
- Always update last HMR ms on a module - by @sheremet-va (99676)
- Terminate workers, when closing process - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2645 (ece43)
-
coverage:
- Prevent c8 from crashing on invalid sourcemaps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2634 (0163d)
- Istanbul provider to use
coverage.extension
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2641 (7e388)
View changes on GitHub
v0.27.0
🚨 Breaking Changes
- Deprecate "error" on result, store errors in "errors" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2586 (e641a)
- 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 (c8e6f)
🚀 Features
- coverage: report only changed files when using istanbul coverage with watch mode - by @g4rry420 in https://github.com/vitest-dev/vitest/issues/2385 (bf872)
🐞 Bug Fixes
- Return mock path only when mocked - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2619 (f8ac2)
- Allow mocking CJS module with interoped default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2598 (6b3e3)
- Avoid random ENOTEMPTY errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2620 (59766)
- Always inline assets and modules with special Vite queries - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2617 (fed1c)
-
cli:
- Allow overrides reporter via cli option - by @mysteryven and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2573 (894f1)
-
coverage:
- Flaky c8 coverage caused by parallel sourcemap constructing - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2591 (9a29f)
- Validate extension, when reporting c8 coverage - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2626 (74463)
🏎 Performance
- Improve vi.mock performance - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2594 (09d19)
View changes on GitHub
v0.26.3
🚀 Features
-
mock: Expose a
importOriginal
helper to the factory - by @antfu in https://github.com/vitest-dev/vitest/issues/2551 (853ee)
🐞 Bug Fixes
- Correctly automock nested interoped defaults - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2559 (a431d)
- Start tracking module resolution as soon as possible for easier tracking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2560 (9f41e)
- Don't hang when mocking module with circular dependency - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2572 (c479d)
- Show list of tests when typechecking - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2585 (32a57)
- api: Make api parse error stacks and return sourcePos in onTaskUpdate - by @adrienbaron in https://github.com/vitest-dev/vitest/issues/2563 (ef77d)
- coverage: Env-replacer to remove query params from sourcemaps filenames - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/2584 (dba13)
View changes on GitHub
v0.26.2
🚀 Features
🐞 Bug Fixes
- Improve "isInternaRequest" check - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2541 (2bb9a)
- Use correct word when printing "long-running" warning - by @simon-abbott in https://github.com/vitest-dev/vitest/issues/2546 (8dc1c)
- Pass down diff options - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2545 (98c94)
-
cli: Respect inline config
dir
- by @antfu in https://github.com/vitest-dev/vitest/issues/2550 (f6b59)
View changes on GitHub
v0.26.1
🚀 Features
- Add more options to configure diff output - by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/2522 (7ae14)
🐞 Bug Fixes
- Don't resolve builtin Node modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2538 (1cbc2)
View changes on GitHub
v0.26.0
🚨 Breaking Changes
- vite-node: Rewrite how vite-node resolves id - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2463 (58ee8)
- Correctly interop nested default for external and inlined modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/2512 (084e9)
- 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.interopDefault
is enabled, or dependency is indeps.inline
. This change doesn't affectjsdom
,happy-dom
oredge
environments.
- 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 (c3a63)
- 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 (b114d)
- Add html reporter based on Vitest UI - by @poyoho and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2444 (b8f34)
- If you have
@vitest/ui
installed, 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 (b4c43)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box