Skip to content

Releases: vuejs/test-utils

v2.4.9

27 Apr 09:53
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

compare changes

🩹 Fixes

  • Tolerate duplicate attachTo cleanup (#2830)

📖 Documentation

  • Document release process (#2834)

🏡 Chore

  • Migrate renovate config (5d37934)

🤖 CI

  • Pin github actions to commit hashes (75dcef3)

❤️ Contributors

v2.4.8

24 Apr 09:42
Immutable release. Only release title and notes can be modified.
a0fa6e0

Choose a tag to compare

compare changes

🩹 Fixes

  • Correct declaration entrypoint (#2826)

🤖 CI

  • Enable pkg.pr.new (#2827)

❤️ Contributors

v2.4.7

24 Apr 08:26
Immutable release. Only release title and notes can be modified.
3320ca1

Choose a tag to compare

compare changes

🚀 Enhancements

  • Add Chinese docs translation (#2552)
  • SetData()/shallowMount with initialData for components using the Composition API / <script setup> (#2655)

🩹 Fixes

  • Preserve code from keyboard events (#2434)
  • Switch browser and require exports definitions (#2501)
  • Re-add peer dependencies but with wider range (#2511)
  • Resolve warnings in docs:dev (30b7491)
  • Resolve TypeScript type errors in .vitepress/config (#2549)
  • Accept FunctionalComponent as selector (0bb947f)
  • Text() misses content for array functional component (#2579)
  • Use await in test (c5482b4)
  • deps: Update dependency vue-component-type-helpers to v3 (#2683)
  • Remove wrapper div when unmount (#2700)
  • Make mount options slots compatible with noUncheckedIndexedAccess true (#2713)
  • Add missing peerDependency @vue/compiler-dom (75801ba)
  • docs: Declare css module for vitepress typecheck (ddaca97)

💅 Refactors

  • Enforce consistent usage of type imports (#2734)

📖 Documentation

  • Clarify findComponent vs getComponent (#2435)
  • Update fr docs (67064ef)
  • Add note about partial transition stub support (#2431)
  • Fix missing data at passing data section essentials guide (dda205e)
  • Fix missing data at passing data section essentials guide fr (ae2c72c)
  • Fix plugin TS declaration example (#2466)
  • Fixed incorrect checkbox value check (#2495)
  • Capital letter in sentence fix (#2499)
  • Import missing DOMWrapper on Implementation of the plugin section (#2519)
  • Add migration step for deprecated ref syntax in findAllComponents (#2498)
  • Correct anchor hash links and fix typo (#2551)
  • Center logo on home (#2559)
  • zh-cn: Review a-crash-course (#2563)
  • Use code-group for install commands (#2571)
  • zh-cn: Review event-handing.md (#2572)
  • zh-cn: Enhance conditional-rendering.md (#2562)
  • zh-cn: Review easy-to-test (#2567)
  • zh-cn: Review passing-data.md (#2575)
  • zh-cn: Review async-suspense.md (#2576)
  • zh: 优化 API 文档格式和内容 (#2569)
  • zh: 更新 Vitest 模拟日期和计时器的说明 (#2578)
  • zh-cn: Review http-requests.md (#2580)
  • zh-cn: Review forms (#2582)
  • zh-cn: Guide/advanced/slots.md (#2565)
  • zh: Review extending-vtu (#2583)
  • zh: Review index (#2584)
  • Fix modelValue test example (85bfdf4)
  • Removes broken link from plugins.md (69bc1ce)
  • zh: Review transitions, component-instance, and reusability-composition (#2616)
  • zh: Review v-model and vuex (#2617)
  • zh: Review all the rest advanced guide (#2619)
  • zh: Review migration (#2623)
  • Fix a typo in transitions.md (#2635)
  • Update crash-course to script setup (c81aa79)
  • Update Essentials section to setup (composition api) (#2647)
  • Typos in examples (#2678)
  • Typo in easy-to-test.md (#2710)
  • Add note about mocking requestAnimationFrame for transitions (2324c65)
  • Updated example TodoApp to script setup (#2727)
  • Remove "Using data" section from "Conditional Rendering" guide and fix passing data test example (#2743)
  • Follow-up fixes for the conditional rendering guide (#2744)
  • Mention shallowMount stub name changes in migration guide (80e051a)
  • Update conditional rendering documentation to clarify isVisible() usage with attachTo (#2799)
  • Restore Options API component for data() mounting example (#2804)
  • Promote Vitest as recommended test runner (#2805)
  • api: Note that setValue does not accept objects on <select> (#2819)

🏡 Chore

  • Add api/index.md to docs:translation:compare (6b8681c)
  • Remove unnecessary generic arguments (cfd70c6)
  • Ignore TS error in config object (9d0a618)
  • Simplify eslint packages (c1d0ffd)
  • Use eslint v9 with flat config (2f19fdf)
  • Expose Stubs type publicly (#2492)
  • Update documentation file path (9c96594)
  • Use pnpm v10 (e4c2cb3)
  • Pnpm approve build (81c54e9)
  • Use github issue forms (#2673)
  • Exclude class components from test type-checking (0899008)
  • Add explicit coverage include for vitest v4 (51672b9)
  • Update to prettier v3.7 (fed9e7c)
  • Migrate to oxfmt (81c1de9)
  • Migrate to oxlint (a361908)
  • Prepare TypeScript 6 migration settings (55e1262)
  • Adjust tsd config for TypeScript 6 (7d23eb5)
  • Avoid TypeScript 6 target deprecation warning (81d063c)

🤖 CI

  • Remove node v22 build (7ebf58d)
  • Add node v22 build (57540ee)
  • Use "pool: threads" instead of vmThreads (d0cbb54)
  • Remove node v18 and add v24 (fd9cf95)
  • Add trusted publishing release workflow (#2825)

❤️ Contributors

Read more

v2.4.6

07 May 00:07
9332127

Choose a tag to compare

What's Changed

  • fix: circular references in props cause maximum call stack size exceeded by @Evobaso-J in #2371
  • fix: update attachTo type in MountingOptions interface by @taku-y-9308 in #2375
  • fix: change vm to always provide global property by @taku-y-9308 in #2386
  • fix: renderStubDefaultSlot with scoped slots by @cexbrayat in #2397
  • feat: Added dynamic return for element getter by @nandi95 in #2406
  • fix(stubs): avoid warning on normalized props with Vue v3.4.22 by @cexbrayat in #2413
  • fix: set global provides before running vue plugins by @danielroe in #2423
  • fix: issue 2319 throw first error thrown during mount by @taku-y-9308 in #2428

New Contributors

Full Changelog: v2.4.5...v2.4.6

v2.4.5

13 Mar 23:04

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.4...v2.4.5

v2.4.4

25 Jan 21:52

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.3...v2.4.4

v2.4.3

28 Nov 21:28

Choose a tag to compare

What's Changed

  • types(setProps): setProps to Partial props by @pikax in #2241

Full Changelog: v2.4.2...v2.4.3

v2.4.2

14 Nov 07:48

Choose a tag to compare

What's Changed

Note: A fix for the text() method (#2231) may force developers to update tests that were checking the text of several elements at once, as the spaces of each element are now trimmed (as they are when using text() on a single element). So if you were checking the text of <span>Trimmed </span><span>Example</span>, it is now TrimmedExample instead of Trimmed Example (and the text() of the first span is still Trimmed as it was before).

Fix

Docs

Chore

New Contributors

Full Changelog: v2.4.1...v2.4.2

v2.4.1

20 Jul 21:00

Choose a tag to compare

What's Changed

Fixes

Docs

  • docs: add warning about isVisible() by @alecgibson in #2122
  • docs: Update missed rename of import to test-utils as the new default by @Hilbrand in #2102

(Dev) Dependencies

New Contributors

Full Changelog: v2.4.0...v2.4.1

v2.4.0

22 Jun 00:06

Choose a tag to compare

Note: there might be some minor breaking changes around types. We tried hard to avoid this and tested a few different projects, but there was some major under the hood changes relating to types (which should improve the TypeScript experience). See the note at the top of the previous release, 2.4.0-alpha.2: https://github.com/vuejs/test-utils/releases/tag/v2.4.0-alpha.2

Between the last main release, v2.3.2, and v2.4.0, there were three alphas:

Please see those release notes for changes if you are updating from v2.3.2. Again, there should not be any major changes, and you code and tests should continue to work as before without any changes.

If you do encounter breaking changes transitioning from 2.3.x -> 2.4.x, please file an issue.