Releases: vuejs/test-utils
Releases Β· vuejs/test-utils
v2.2.3
What's Changed
- chore(deps): update vitest to v0.25.2 by @renovate in #1862
- fix: allow spying on non-exposed script setup functions by @cexbrayat in #1860
- fix: expose props on vm for script setup components by @cexbrayat in #1864
- fix: allow mocking on script setup components by @cexbrayat in #1861
Full Changelog: v2.2.2...v2.2.3
v2.2.2
Fixes
- fix(mount): correctly work with component throwing on mount by @xanf in #1845
- fix(emit): force event handling even with fake timers by @cexbrayat in #1856
Other
- chore(deps): update vitest to v0.24.4 by @renovate in #1841
- chore(deps): update vitest to v0.24.5 by @renovate in #1842
- chore(deps): update all non-major dependencies by @renovate in #1843
- chore(mount): simplify mount operation by @xanf in #1844
- chore(deps): update vitest to v0.25.0 by @renovate in #1847
- chore(deps): update vitest to v0.25.1 by @renovate in #1848
- chore: update to vue v3.2.43 by @cexbrayat in #1853
- chore(deps): update all non-major dependencies by @renovate in #1849
- chore: update to vue v3.2.45 by @cexbrayat in #1857
- refactor: use a proxy for wrapper.vm by @cexbrayat in #1858
Full Changelog: v2.2.1...v2.2.2
v2.2.1
What's Changed
- chore(deps): update dependency unplugin-vue-components to v0.22.9 by @renovate in #1828
- chore(deps): update all non-major dependencies by @cexbrayat in #1835
- chore(deps): update all non-major dependencies by @cexbrayat in #1837
- docs(v-model): add v-model section by @pikax in #1839
- fix(stubs): teleport stub children as a function by @cexbrayat in #1833
- chore: ignore js-beautify updates in renovate by @cexbrayat in #1840
- chore(deps): update dependency @types/node to v18.11.7 by @renovate in #1838
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
Features
- feat(setValue): allow array for multiselect .setValue() method by @freakzlike in #1825
- feat(wrapper): Add raw option to .html() by @freakzlike in #1827
- feat(stubs): Allow to stub directives (fixes #1800) by @xanf in #1804
Fixes
- fix(compat): do not overwrite globalProperties merge them instead by @xanf in #1788
- fix(element): return correct element for component which renders other component while passing array of vnodes in default slot by @xanf in #1789
- fix: cleanup event listeners on unmount by @freakzlike in #1793
- fix(config): Do not use config.renderStubDefaultSlot by @xanf in #1797
- fix(stubs): Do not render function body in stub by @xanf in #1819
Other
- chore(deps): update dependency rollup-plugin-typescript2 to v0.34.1 by @renovate in #1790
- chore(deps): update all non-major dependencies by @renovate in #1794
- chore(deps): update dependency unplugin-vue-components to v0.22.8 by @renovate in #1795
- added typescript documentation to plugins.md by @mrcwbr in #1796
- chore(deps): update dependency vue-tsc to v1 by @renovate in #1802
- chore(deps): update dependency @rollup/plugin-commonjs to v23 by @renovate in #1803
- chore(deps): update dependency @rollup/plugin-json to v5 by @renovate in #1805
- chore(deps): update dependency @rollup/plugin-node-resolve to v15 by @renovate in #1806
- chore(deps): update dependency @rollup/plugin-replace to v5 by @renovate in #1808
- chore(deps): update pnpm/action-setup action to v2.2.3 by @renovate in #1809
- chore(scripts): add prepare script by @xanf in #1812
- chore: use @rollup/plugin-typescript by @cexbrayat in #1811
- chore: use a typescript rollup config by @cexbrayat in #1814
- chore: use --bundleConfigAsCjs to load rollup config by @cexbrayat in #1816
- chore: support node v18 by @cexbrayat in #1817
- chore(deps): update pnpm/action-setup action to v2.2.4 by @renovate in #1820
- chore(deps): update all non-major dependencies by @renovate in #1821
- chore: update to vitest v0.24.3 by @cexbrayat in #1823
- chore(deps): update dependency @vitest/coverage-c8 to v0.24.3 by @renovate in #1824
New Contributors
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
Fixes
- fix: keep Date objects on setData by @freakzlike in #1720
- fix: Make wrapper.find() enable to find ref in v-for directive by @hiromi2424 in #1723
- fix: duplicate results on findAllComponents with non-function slots by @freakzlike in #1736
- fix: coverage now needs @vitest/coverage-c8 by @cexbrayat in #1745
- fix: return the correct name when stubbing a
script setup
component by @joeyhuang0235 in #1783 - fix: Add props to stubs for built-in components by @wolfgangwalther in #1767
Other
- refactor: stubs types by @cexbrayat in #1773
- refactor: remove useless params in emits handling by @cexbrayat in #1777
- test: migrate to vitest by @okxiaoliang4 in #1637
Chore
- chore: remove babel dependencies and config by @cexbrayat in #1642
- chore: lockfile maintenance by @cexbrayat in #1643
- chore: switch to pnpm by @cexbrayat in #1644
- chore: configure renovate to group vite packages by @cexbrayat in #1685
- docs: update installation docs by @ryandialpad in #1693
- chore: use es2016 as a TS target by @cexbrayat in #1695
- chore: Update README since package manager was changed from yarn to npnm by @hiromi2424 in #1724
-
- chore: refactor and remove old files by @lmiller1990 in #1776
- chore: Add version info to bug report template by @freakzlike in #1729
- chore: Extend expose tests with not used function by @freakzlike in #1735
- chore: improve type for stub cache by @cexbrayat in #1743
- chore: improve type for mount with TS v4.8 by @cexbrayat in #1744
- chore: run tests in random order by @cexbrayat in #1747
New Contributors
- @ryandialpad made their first contribution in #1693
- @hiromi2424 made their first contribution in #1724
- @wolfgangwalther made their first contribution in #1767
- @joeyhuang0235 made their first contribution in #1783
Full Changelog: v2.0.2...v2.1.0
v2.0.2
What's Changed
Fixes
- fix: fix typo by @liuzhuan in #1608
- fix: check if component unmounted in Wrapper.exists() by @Djaler in #1629
- fix: algolia appId by @okxiaoliang4 in #1636
Docs
Chore/Other
- chore(types): improve typing of emitted by @xanf in #1640
- repro: type-checking issue with script setup in v2.0.1 by @cexbrayat in #1601
New Contributors
- @liuzhuan made their first contribution in #1608
- @Djaler made their first contribution in #1629
- @N8ers made their first contribution in #1635
- @okxiaoliang4 made their first contribution in #1636
Full Changelog: v2.0.1...v2.0.2
v2.0.1
Test Utils is quite stable now, so most of the changes here are minor fixes.
The next "big ticket" feature will be SSR support. You can track it here: #1572
Fixes
- fix(compat): declare RouterLinkStub as compatibility mode 3 by @snoozbuster in #1549
- fix(types): Export BaseWrapper from index.ts by @snoozbuster in #1548
- fix: export package.json from module by @snoozbuster in #1542
- fix(utils): getRootNodes flattens only one depth of children by @cexbrayat in #1546
- fix(compat): respect v-model in vue 2 with compat build by @snoozbuster in #1565
Chores/Dependencies
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.27.0 to 5.27.1 by @dependabot in #1583
- chore: add return type to createStub by @cexbrayat in #1544
- chore: lockfile maintenance by @cexbrayat in #1543
- chore(deps-dev): bump @vue/compiler-sfc from 3.2.34 to 3.2.36 by @dependabot in #1527
- chore: bump vue to v3.2.26 by @cexbrayat in #1545
- chore(deps-dev): bump vue-tsc from 0.34.15 to 0.34.16 by @dependabot in #1532
- chore(deps-dev): bump rollup from 2.74.1 to 2.75.5 by @dependabot in #1564
- chore(deps-dev): bump lint-staged from 12.4.2 to 13.0.0 by @dependabot in #1563
- chore(deps-dev): bump @types/node from 17.0.35 to 17.0.38 by @dependabot in #1562
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.26.0 to 5.27.0 by @dependabot in #1556
- chore(deps-dev): bump vue-tsc from 0.34.16 to 0.35.2 by @dependabot in #1555
- chore(deps-dev): bump @babel/types from 7.18.2 to 7.18.4 by @dependabot in #1551
- chore(deps-dev): bump @typescript-eslint/parser from 5.26.0 to 5.27.0 by @dependabot in #1553
- chore(deps-dev): bump rollup-plugin-typescript2 from 0.31.2 to 0.32.0 by @dependabot in #1566
- chore(find): extend tests with deep nested multiple roots by @freakzlike in #1569
- chore(deps-dev): bump @types/node from 17.0.38 to 17.0.39 by @dependabot in #1570
- chore(deps-dev): bump eslint from 8.16.0 to 8.17.0 by @dependabot in #1579
- chore(deps-dev): bump typescript from 4.6.4 to 4.7.3 by @dependabot in #1578
- chore(deps-dev): bump @types/node from 17.0.39 to 17.0.40 by @dependabot in #1576
- chore(deps-dev): bump @typescript-eslint/parser from 5.27.0 to 5.27.1 by @dependabot in #1582
- chore: update Vue to 3.2.37 by @lmiller1990 in #1585
- chore(deps-dev): bump rollup from 2.75.5 to 2.75.6 by @dependabot in #1586
- chore(deps-dev): bump babel-preset-jest from 28.0.2 to 28.1.1 by @dependabot in #1588
- chore(deps-dev): bump lint-staged from 13.0.0 to 13.0.1 by @dependabot in #1591
- chore(deps-dev): bump vue-router from 4.0.15 to 4.0.16 by @dependabot in #1593
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.27.1 to 5.28.0 by @dependabot in #1598
- chore(deps-dev): bump @types/node from 17.0.40 to 17.0.42 by @dependabot in #1594
- chore(deps-dev): bump @babel/core from 7.18.2 to 7.18.5 by @dependabot in #1596
- chore(deps-dev): bump @typescript-eslint/parser from 5.27.1 to 5.28.0 by @dependabot in #1595
- chore(deps-dev): bump rollup-plugin-typescript2 from 0.32.0 to 0.32.1 by @dependabot in #1587
- chore(deps-dev): bump prettier from 2.6.2 to 2.7.0 by @dependabot in #1600
New Contributors
- @dcrall made their first contribution in #1535
- @snoozbuster made their first contribution in #1549
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This is v2.0.0. The library is quite stable and there are not major bugs.
What's Changed
- Fix/emitted events cache by @BrettLargent in #1449
- fix: string slot null ctx in renderFn by @braddialpad in #1462
- fix: wrapper.element with nested multiple roots by @freakzlike in #1463
- fix: fix module resolution for esm file by @sheremet-va in #1484
- regression: #1476 reactive prop object compare by @freakzlike in #1479
- fix: Pass props to functional component by @freakzlike in #1513
- fix(wrapper): fix wrapper.element for component with slot by @xanf in #1497
- fix(findComponent): allow finding top-level component by @xanf in #1496
- chore: bump to vue v3.2.34 by @cexbrayat in #1510
New Contributors
- @BrettLargent made their first contribution in #1449
- @braddialpad made their first contribution in #1462
- @sheremet-va made their first contribution in #1484
Full Changelog: v2.0.0-rc.21...v2.0.0
v2.0.0-rc.21
This is the final release candidate, unless something major comes up. We will move to 2.0.0 next release.
v2.0.0-rc.20
What's Changed
- fix: make imports in wrapperLike relative (again) by @catrope in #1401
- fix: remove compilerOptions from config by @cexbrayat in #1408
- docs: add RouterLinkStub to api docs by @aethr in #1391
- chore: bump to vue v3.2.32 by @cexbrayat in #1418 (fixes bug in
shallowMount
)
New Contributors
- @celiavelmar made their first contribution in #1395
- @catrope made their first contribution in #1401
Full Changelog: v2.0.0-rc.19...v2.0.0-rc.20