chore(deps): update dependency vitest to v1
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vitest (source) | devDependencies | major | ^0.34.0 -> ^1.0.0 |
Release Notes
vitest-dev/vitest (vitest)
v1.1.3
🐞 Bug Fixes
-
vitest:
- Vi.mock breaks tests when using imported variables inside the factory - by @sheremet-va and Dunqing in https://github.com/vitest-dev/vitest/issues/4873 (7719e)
- Apply
slowTestThreshold
to all reporters - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4876 (1769c)
View changes on GitHub
v1.1.2
🐞 Bug Fixes
- Remove internal flag from UI option in the config - by @sheremet-va (7b4a2)
-
browser:
- Avoid safaridriver collision - by @mbland in https://github.com/vitest-dev/vitest/issues/4863 (345a2)
- Resolved failure to find arbitrarily-named snapshot files when using
expect(...).toMatchFileSnapshot()
matcher. - by @zmullett, Zac Mullett and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4839 (b8140) - Handle config.base - by @mbland and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4686 and https://github.com/vitest-dev/vitest/issues/4692 (9e345)
-
deps:
- Update dependency acorn-walk to ^8.3.1 - by @renovate[bot] in https://github.com/vitest-dev/vitest/issues/4837 (47bc2)
- Update dependency sirv to ^2.0.4 - by @renovate[bot] in https://github.com/vitest-dev/vitest/issues/4838 (df261)
-
runner:
- Fix fixture cleanup for concurrent tests - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4827 (1fee6)
-
spy:
- Don't allow
Promise
inmockImplementation
if it's not in the function signature - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4859 (072e0)
- Don't allow
-
vite-node:
- Correctly return cached result - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4870 (15bbb)
-
vitest:
- Throw an error if mock was already loaded when
vi.mock
is called - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4862 (e12a5) - Correctly rerun test files on change if server was restarted - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4871 (6088b)
- Throw an error if mock was already loaded when
-
vm-threads:
- Don't crash on percentage based
memoryLimit
- by @inottn and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4802 (70e8a)
- Don't crash on percentage based
View changes on GitHub
v1.1.1
🐞 Bug Fixes
- Don't crash when using happy-dom or jsdom environment on Yarn PnP workspaces - by @wojtekmaj and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4698 (ee8b4)
- Don't fail if
inline: true
is set - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4815 (8f622) - Correct option name
--no-parallelism
- by @bonyuta0204 in https://github.com/vitest-dev/vitest/issues/4831 (5053a) - Match jest json output by making json reporter output ndjson-compatible - by @bard in https://github.com/vitest-dev/vitest/issues/4824 (7e6a6)
-
runner:
- Reset "current test" state on dynamic
skip
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4814 (19faf)
- Reset "current test" state on dynamic
-
vitest:
- Don't hang when mocking files with cyclic dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4811 (e8ca6)
- Initialize snapshot state only once for each file suite - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4796 (957da)
- Fix file snapshots in skipped suites considered obsolete - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4795 (06c14)
- Show
beforeAll/afterAll
errors in junit reporter - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4819 (2baea)
-
vm-threads:
- Tests not cancelled on key press, cancelled tests shown twice - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4781 (cf53d)
View changes on GitHub
v1.1.0
🚀 Features
- Add es-main compatibility to vite-node - by @zookatron in https://github.com/vitest-dev/vitest/issues/4751 (486a3)
- Add
--workspace
option, fix root resolution in workspaces - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4773 (67d93) - Add
--no-file-parallelism
,--maxWorkers
,--minWorkers
flags - by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4705 (fd5d7) - Add
--no-isolate
flag to improve performance, add documentation about performance - by @sheremet-va, @AriPerkkio and Pascal Jufer in https://github.com/vitest-dev/vitest/issues/4777 (4d55a) - Add
--exclude
CLI flag - by @Namchee and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4279 (f859e)
🐞 Bug Fixes
- Correctly reset provided values - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4775 (5a71e)
-
expect:
- Fix
toHaveProperty
assertion error diff - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4734 (f8f70)
- Fix
-
runner:
- Handle fixture teardown error - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4683 (c6f5f)
-
types:
-
defineWorkspace
fix intellisense and report type errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4743 (9cc36)
-
-
ui:
- Escape html for console log view - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4724 (e0dde)
- Fix coverage iframe url for html report preview - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4717 (71911)
- Show file item when search filter matches only test cases - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4736 (f43fd)
-
vitest:
- Pass down CLI options to override workspace configs - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4774 (8dabe)
View changes on GitHub
v1.0.4
The previous release was built incorrectly and didn't include the performance fix. This release fixes that.
🐞 Bug Fixes
-
cli:
--coverage.all=false
resolved incorrectly - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4697 (a7931)
🏎 Performance
-
reporters: Downgrade
log-update
to v5 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4711 (13ff9)
View changes on GitHub
v1.0.3
🐞 Bug Fixes
- Correct package exports - by @userquin in https://github.com/vitest-dev/vitest/issues/4707 (37388)
- runner: Fix async fixture teardown - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4700 (92afd)
- vitest: Correctly filter changed files when Vitest workspace is used - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4693 (34135)
🏎 Performance
-
reporters: Downgrade
log-update
to v5 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4711 (13ff9)
View changes on GitHub
v1.0.2
🐞 Bug Fixes
- Don't check if vite is installed - by @wojtekmaj in https://github.com/vitest-dev/vitest/issues/4659 (775e2)
- Fix ensurePackageInstalled on Yarn PnP - by @wojtekmaj in https://github.com/vitest-dev/vitest/issues/4657 (574cc)
- Apply
stripSnapshotIndentation
for thrown snapshot - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4663 (74820) -
cli:
- Prompted packages fail to install - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4593 (a9908)
-
expect:
- Apply
URL
equality check only whenURL
is available - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4670 (43783)
- Apply
-
runner:
- Improve fixture error messages - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4673 (1e4aa)
- Fix fixture cleanup when test times out - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4679 (e7c5e)
-
vitest:
- Support new Request('/api') in happy-dom - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4671 (6e6ee)
- Skip processing getter in auto-mocked constructor call - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4677 (cb786)
View changes on GitHub
v1.0.1
🐞 Bug Fixes
- Bump vitest packages
peerDependencies
versions - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4654 (42070)
View changes on GitHub
v1.0.0
Vitest 1.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
🚨 Breaking Changes
- Add support for
pool
andpoolOptions
, remove old flags - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4172 (114a9) - Support multiple parallel
child_process
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3925 (8b4a4) - Make snapshots more visually pleasing by @sheremet-va in https://github.com/vitest-dev/vitest/pull/3961
- Set
vitest
peer dependency range for sub packages - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4299 (cd03c) - Bump minimum node version to 18 and match Vite 5 requirement - by @ghiscoding in https://github.com/vitest-dev/vitest/issues/4296 (263b7)
- Remove deprecated node loader - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4371 (29299)
- Move browser providers to @vitest/browser package - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4364 (5cdeb)
- Remove EnhancedSpy type, deprecate SpyInstance, improve mocks and vi documentation - by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/4400 (d40b3)
-
expect().toContain()
can handle classList, Node.contains, and any array-like structure. This means you cannot use it to check if one object is a subset of another - useexpect().toMatchObject()
in that case - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4239 (ce84f) - runner: Correctly process custom tasks, update runner hooks naming by @sheremet-va in https://github.com/vitest-dev/vitest/pull/4076
-
coverage:
- glob based coverage thresholds by @AriPerkkio in https://github.com/vitest-dev/vitest/pull/4442 (18300)
- Use
transformMode
and workspace project based source maps - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4309 (28109cc) - Enable
coverage.all
by default - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4265 (5a741)
🚀 Features
- Add Marko example and include code coverage for Marko files - by @DylanPiercey in https://github.com/vitest-dev/vitest/issues/4263 (eac77)
- Update magic-string - by @bluwy in https://github.com/vitest-dev/vitest/issues/4345 (fde18)
- Implement provide/inject API to transfer data from the main thread - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4422 (a7522)
- Improve expectTypeOf error messages - by @mmkal, Misha Kaletsky and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4206 (18300)
- Add test.sequential() api - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4512 (c3619)
- Allow custom pools - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4417 (a3fd5)
- Add --project option to limit what projects are running - by @sheremet-va, @dammy001 and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4561 (58ef5)
-
benchmark:
- Move importTinybench to runner - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4376 (c36d2)
-
browser:
- Support "none" provider and update lit example to use it - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4427 (d03a2)
-
coverage:
- Support
/* v8 ignore...
ignore hints - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4573 (f9e4a)
- Support
-
expect:
- Support
expect.closeTo
api - by @Dunqing and golebiowskib in https://github.com/vitest-dev/vitest/issues/4260 (7f91c) - Compare URL objects by href - by @kleinfreund and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4615 (f7a73)
- Support
-
snapshot:
- Add option to configure snapshot directory - by @d3lm in https://github.com/vitest-dev/vitest/issues/4651 (20b2a)
-
vite-node:
- Support import.meta.hot.off for vite 5 - by @bluwy in https://github.com/vitest-dev/vitest/issues/4315 (01b1c)
-
vitest:
- Expose getBenchFn, getBenchOptions - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4208 (8e5e4)
- Run typecheck during tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4324 (a1aad)
- Filter stacktraces - by @clarkf in https://github.com/vitest-dev/vitest/issues/1999 and https://github.com/vitest-dev/vitest/issues/4338 (6b734)
- Expose execArgv to the different pools - by @adriencaccia in https://github.com/vitest-dev/vitest/issues/4383 (9021e)
🐞 Bug Fixes
- Add multiple globals in VM+JSDOM - by @nstepien in https://github.com/vitest-dev/vitest/issues/4199 and https://github.com/vitest-dev/vitest/issues/4202 (fc947)
- Ignore "plugins" field in snapshotFormat option - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4204 (db1ff)
-
nextTick
mocking error message to mention correct config option - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4215 (98fe3) - Export VitestUtils interface - by @fbritoferreira in https://github.com/vitest-dev/vitest/issues/4301 (b1439)
- Assertion diff message handle non-writable sub-properties - by @bfamchon in https://github.com/vitest-dev/vitest/issues/4278 (7e1a0)
- Don't bundle import from rollup - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4392 (3b584)
- Support accessing fixture at same index of dependency fixture - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4387 (4cd1d)
- Make asynchronous fixtures work concurrently - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4403 (3c9f9)
- Coverage.100 crash when using as an cli argument - by @marcelobotega in https://github.com/vitest-dev/vitest/issues/4346 (0db38)
- Support typechecking with Yarn PnP - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4412 (1ecbe)
- Support accessing task from test context without accessing fixtures - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4419 (3397f)
- Copy custom asymmetric matchers to local
expect
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4405 (9fe38) - Apply serializer to
Error
instance for thrown snapshot - by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4396 (ac309) - Throw an error when running "vitest typecheck" - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4439 (7f502)
- Don't expand snapshot diff by default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4430 (8983c)
- Handle errors thrown in fixtures - by @dsyddall (f6844)
- Default --open to !process.env.CI - by @collinstevens in https://github.com/vitest-dev/vitest/issues/4477 (088a0)
- Disable ESBuild when user config disables it - by @Namchee in https://github.com/vitest-dev/vitest/issues/4492 (9abde)
- Inherit concurrent/sequential in nested suites - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4482 (ca168)
- Provide customTesters to asymmetric matchers - by @sheremet-va (ac665)
- Apply
retry
andbail
from test config file - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4530 (94f9a) - Respect trailing slash when filtering by file path - by @ibuibu in https://github.com/vitest-dev/vitest/issues/4538 (f377a)
- Date prototype when using setSystemTime - by @spiroka in https://github.com/vitest-dev/vitest/issues/4584 (3f8c3)
- BrowserTestRunner called incorrect super methods - by @samthor in https://github.com/vitest-dev/vitest/issues/4632 (8385c)
- Set process name for idle workers - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4641 (eca25)
-
bench:
- Extract ChainableBenchmarkAPI type - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4537 (79e9b)
-
browser:
- Improve error handling and don't rely on Node.js builtin modules in browser mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4244 (e7e8c)
- Disable hijacking ES modules until vi.mock is implemented - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4414 (ab556)
- Add vitest/ imports to entries - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4514 (648bc)
- Wait until vite finishes prebundling of vitest dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4518 (56ee7)
- Allow for
pretty-format
as a sibling dependency - by @nicojs in https://github.com/vitest-dev/vitest/issues/4590 (ed50a) - Don't go into an infinite reload loop, don't fail if "error" event is caught - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4618 (ec3d6)
- Respect "server" option in vite config - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4627 (723f6)
-
cli:
- Do not capture
stdin
when in run mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4310 (fc51a)
- Do not capture
-
config:
- Type issue of
pool
andpoolMatchGlobs
in defineConfig - by @InfiniteXyy in https://github.com/vitest-dev/vitest/issues/4282 (9112c)
- Type issue of
-
coverage:
-
thresholdAutoUpdate
to detect zero limits - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4287 (a29fe) - Exclude files and directories starting with dot by default - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4428 (b3327)
- Improve memory usage by writing temporary files on file system - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4603 (4166c)
-
-
deps:
- Update dependency v8-to-istanbul to ^9.2.0 - by @renovate[bot] in https://github.com/vitest-dev/vitest/issues/4583 (a70f2)
- Update dependency std-env to ^3.5.0 - by @renovate[bot] in https://github.com/vitest-dev/vitest/issues/4582 (1fdd6)
-
example:
- Resolve type error - by @jqkk in https://github.com/vitest-dev/vitest/issues/4515 (2d1b4)
-
expect:
- Publish types file - by @sheremet-va (5996c)
-
Object.freeze
breakstoEqual
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/4303 (a4501) - Publish semantically correct chai types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4322 (80a70)
- Print full error if promise is rejected - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4467 (cadb9)
- Don't fail when using jest expect - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4517 (60d6d)
-
happy-dom:
- Don't crash when calling useFakeTimers with empty config - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4214 (2e1a1)
-
jsdom:
- Don't go into an infinite recusion when calling atob - by @sheremet-va (da794)
-
runner:
- Fixture needs to be initialized for each test - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4250 (76a93)
- Nested tests should throw errors - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4262 (8ac9f)
- Removes deprecated
error
option from TaskResult - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4313 (4cee6) - Preserve fixtures when calling runif and skipif - by @dsyddall in https://github.com/vitest-dev/vitest/issues/4585 and https://github.com/vitest-dev/vitest/issues/4591 (515ea)
- PassWithNoTests option not work - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4553 (8d183)
-
vite-node:
- Have a separate cache for web/ssr transforms - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4221 (ca5db)
- Mjs files watch not work - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3982 (77ea9)
-
vitest:
- Make @types/node optional - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4210 (a5383)
- Inline chai types instead of using @types/chai - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4209 (5f477)
- Don't initialize globalSetup if workspace doesn't run tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4213 (06461)
- Deduplicate vitest when running globally or in a workspace - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4238 (93504)
- Print file path instead of "unknown test" when logging - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4146 (ec2e8)
- Failed to load custom environment from js/ts file - by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4255 (da8d0)
- Support assets in new URL in Vite 5 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4258 (d280f)
- Correctly hoist
vi.hoisted
if assigned - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4285 (ff93a) - Run globalSetup from the root config even if it's not in a workspace - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4325 (4293e)
- Pass correct mode in vitest config function - by @adriencaccia in https://github.com/vitest-dev/vitest/issues/4399 (b8ca3)
- Throw an error if vitest is imported using require() - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4466 (e5cf1)
- Use correct type for defineProject to allow usage in mergeConfig - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4498 (7dee8)
- Throw an error if Vite wasn't able to resolve aliased path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4503 (50333)
- Improve vi.waitUntil type to excude falsy types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4572 (23652)
- Add import-meta.d.ts - by @macdaddyaz in https://github.com/vitest-dev/vitest/issues/4571 (dd802)
- Correctly support CSS variable when using happy-dom - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4601 (9fbf3)
- Pass correct server options in workspace - by @hironytic in https://github.com/vitest-dev/vitest/issues/4539 and https://github.com/vitest-dev/vitest/issues/4540 (241a8)
- Independently mock each instance's methods for mocked class - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4564 (05b05)
-
vm:
- Remove sequencer usage from createVmThreadsPool function - by @mhogeveen in https://github.com/vitest-dev/vitest/issues/4638 (54d52)
🏎 Performance
- Update
log-update
v9 - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4390 (ba1df) - Close pool early in run-mode - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4623 (e0e20)
-
coverage-istanbul:
all: true
instruments already instrumented files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4552 (d1e1b)
View changes on GitHub
v0.34.6
🐞 Bug Fixes
- Overwrite global URL with environment's - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4164 (cbe13)
- Correctly resolve external dependencies loaded by custom environments - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4196 (e3408)
-
runner: The fixture of
test.extend
should be init once time in all test - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4168 (730b2)
View changes on GitHub
v0.34.5
🚀 Features
-
config:
- Add
diff
option - by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4063 (b50cf)
- Add
-
coverage:
- Add
coverage['100']
to istanbul provider - by @marcelobotega in https://github.com/vitest-dev/vitest/issues/4109 (a7e09)
- Add
-
vitest:
- Support
vi.waitFor
method - by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4113 (d79cb) - Allow using unprocessed environment files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4098 (1aee1)
- Support
vi.waitUntil
method - by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4129 (e0ac9)
- Support
🐞 Bug Fixes
- Update HappyDOMOptions to be compatible with v12 - by @anthonyblond in https://github.com/vitest-dev/vitest/issues/4135 (e8797)
- Print value shape when .resolves and .rejects fails - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4137 (e649d)
-
docs:
- Fix lint errors on onConsoleLog example - by @marcelobotega in https://github.com/vitest-dev/vitest/issues/4116 (ba1e7)
-
expect:
- Improve the error message when nothing is thrown when testing
toThrow
- by @Dunqing in https://github.com/vitest-dev/vitest/issues/3979 (725a0)
- Improve the error message when nothing is thrown when testing
-
happy-dom:
- Catch errors in happy-dom - by @capricorn86 in https://github.com/vitest-dev/vitest/issues/4140 (c21c0)
-
runner:
- Restore leading space in
testNamePattern
- by @segrey in https://github.com/vitest-dev/vitest/issues/4103 and https://github.com/vitest-dev/vitest/issues/4104 (3c305) -
test.extend
doesn't work in hooks without test - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4065 (175c7)
- Restore leading space in
-
snapshot:
- Support mix of normal/with placeholders snapshots - by @RobertPechaCZ in https://github.com/vitest-dev/vitest/issues/4118 (01e01)
-
ui:
- Correctly render ansi diff - by @so1ve and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3810 (8c315)
-
vite-node:
- Export
SourceMapInput
to fix CYCLIC_CROSS_CHUNK_REEXPORT - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4128 (ca70a) - Align vite dependency version with vitest - by @sheremet-va (90ff8)
- Export
-
vitest:
- Rerun tests if a file loaded with query changes - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4130 (a084c)
- Inject "define" in workspaces - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4096 (b4d5a)
🏎 Performance
- Use lazy require in vm pool - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4136 (21ba4)
View changes on GitHub
v0.34.4
🐞 Bug Fixes
- Resolving dep optimizer issues with workspace - by @thebanjomatic in https://github.com/vitest-dev/vitest/issues/4036 (0c13c)
- Don't process config file twice - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4077 (a84a8)
-
coverage:
- Log info only when terminal reporter is used - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4027 (9f043)
-
happy-dom:
- Use the nodejs console in happy-dom v11 - by @capricorn86 in https://github.com/vitest-dev/vitest/issues/4090 (59434)
-
runner:
- Incorrect test name pattern matching - by @Dunqing in https://github.com/vitest-dev/vitest/issues/4071 (b5bf3)
-
vite-node:
- Check more precisely for root/base paths - by @danielroe in https://github.com/vitest-dev/vitest/issues/4049 (80741)
-
vitest:
- "vi" doesn't rely on context - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4031 (0d0f3)
- Only override ssr.optimizer instead of the whole ssr object - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4080 (410bc)
- Don't start the server when optimizer is enabled - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4095 (00e81)
- Set SSR env only when transformMode is ssr - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4083 (f8ea7)
- Show error when calling API on files that user has no access to - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4085 (8b39c)
-
web-worker:
- Don't rely on browser API when it's not provided - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4014 (e78a4)
View changes on GitHub
v0.34.3
🚀 Features
-
coverage: Add
allowExternal
option - by @vojvodics and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3894 (c03fa) -
vitest: Export all reporters in
vitest/reporters
- by @Dunqing and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3980 (5704b)
🐞 Bug Fixes
- Should remove mockPath from callstack whether success or failed - by @miserylee and lijifei in https://github.com/vitest-dev/vitest/issues/3971 (5eb85)
- Add workspace config files to default coverage excludes - by @FelixGraf and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3973 (20263)
- Report file error as a on JUnit - by @3c1u in https://github.com/vitest-dev/vitest/issues/3997 (00c43)
- jsdom: Correctly resolve buffer on typed arrays - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3998 (b42cf)
- ui: Use web hash history in ui - by @segevfiner and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3481 and https://github.com/vitest-dev/vitest/issues/3487 (8caab)
- vite-node: Inline HMR types - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3993 (dff60)
- vitest: Correctly resolve optimizer status - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3992 (74dc5)
View changes on GitHub
v0.34.2
🚀 Features
- Allow importing CSS and assets inside external dependencies when using
--experimental-vm-threads
- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3880 (f4e6e) -
vitest: Allow calling
ctx.skip()
inside the running test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3966 (5c88d)
🐞 Bug Fixes
- Don't bundle utils' source-map entry - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3865 (a08e5)
- Reduce the memory consumption when running --experimental-vm-threads - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3872 (d1a08)
- Indicator position of error message - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3855 (3e1e7)
- Don't crash when using --experimental-vm-threads, interop CJS default inside node_modules - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3876 (0c53e)
- Don't crash if total memory is not supported - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3879 (7d1f8)
- Check memory and limit value - by @sheremet-va (f8dfb)
- Update module warning as it is moved into server config - by @jellyfishgh in https://github.com/vitest-dev/vitest/issues/3931 (3a3eb)
- Define process variable and using import.meta.env together did not work - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3944 (e73ca)
- Correctly resolve config in a workspace - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3947 (1c08d)
- Don't crash when calling useFakeTimers in VM pool - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3958 (91fe4)
- Restrict access to file system via API - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3956 (bcb41)
- Typo of mocks plugin name - by @antfu (3073b)
- Build not generated
execute.d.ts
- by @btea in https://github.com/vitest-dev/vitest/issues/3970 (0f8e6) -
css:
- Don't mock css-module if
?inline
query is specified - by @thebanjomatic and Adam Hines in https://github.com/vitest-dev/vitest/issues/3952 (3891d)
- Don't mock css-module if
-
expect:
- Correctly show async matcher diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3960 (9423b)
-
snapshots:
- Update inline snapshot correctly - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3887 (7b740)
-
ui:
- Incorrect duration time in vitest ui - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3945 (35139)
- Add support for ui coverage with subdir option - by @userquin in https://github.com/vitest-dev/vitest/issues/3917 (6ecfc)
-
vitest:
- Use esm module resolution to resolve env - by @danielroe in https://github.com/vitest-dev/vitest/issues/3951 (edb32)
- Allow rewriting process.env.NODE_MODE when using web transform mode - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3957 (eca4b)
- Only consider cwd when using glob - by @g-plane in https://github.com/vitest-dev/vitest/issues/3802 and https://github.com/vitest-dev/vitest/issues/3949 (15b4f)
- Pass environmentOptions to happy-dom integration - by @sheremet-va and Raul de Melo in https://github.com/vitest-dev/vitest/issues/3972 (6a0cb)
-
web:
- Correctly resolve assets in new URL - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3950 (a428f)
🏎 Performance
- dot-renderer: Speed up getTests - by @gtm-nayan in https://github.com/vitest-dev/vitest/issues/3923 (e9404)
View changes on GitHub
v0.34.1
🐞 Bug Fixes
- Pass
--experimental-vm-worker-memory-limit
totinypool
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3856 (3c67a)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot