yarn @vue/test-utils 2.4.7
v2.4.7

latest release: 2.4.8
9 hours ago

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

Don't miss a new test-utils release

NewReleases is sending notifications on new releases.