Releases: nuxt/test-utils
Releases Β· nuxt/test-utils
v3.20.0
3.20.0 is the next minor release.
π Changelog
π Enhancements
- runtime-utils: Automatic ref unwrapping for
wrapper.vm(#1405) - runtime: Allow
registerEndpointto work with native fetch (#1415) - runtime: Add
scopedoption to cleanup components (#1389)
π©Ή Fixes
- runtime-utils: Capture events emitted before the first render (#1353)
- runtime-utils: Add missing import (#1372)
- e2e: Detect nuxt config files in
.configfolder (#1381) - e2e: Bump windows teardown timeout to 60s (9f1f712da)
- runtime: Allow
registerEndpointto work with$fetch.create(#1403) - Handle optional chaining for imports in
setupImportMockingfunction (#1433) - vitest: Support
virtualConsole.forwardToinjsdom(6b4076a04) - vitest: Call
window.closeon jsdom teardown (25b87eef3) - vitest: Stub
IntersectionObserverin teardown (230dd240a)
π Documentation
π‘ Chore
- Switch to npm trusted publishing (3a1f194fb)
- deps-dev: Bump happy-dom from 19.0.2 to 20.0.0 (#1441)
- Relax upper peerDependency ranges (4676f4bf3)
- Add test script (3126fa243)
β Tests
- Add example tests for nuxt ui (#1396)
π€ CI
- Do not fail matrix if one os fails (7d2969e29)
- Add read contents permission (782119685)
- Run release tasks on latest node version (fb2007b33)
- Add provenance action to check for downgrades in provenance (10288633c)
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Mike Laumann Bellika (@MikeBellika)
- yamachi4416 (@yamachi4416)
- Vasily Kuzin (@ExEr7um)
- dependabot[bot] (@dependabot[bot])
- Toshiki Yoshioka (@ytoshiki)
- Jess (@JessicaSachs)
- Yizack Rangel (@Yizack)
- Ingo Renner (@irnnr)
- Tomina (@Thomaash)
v3.19.2
3.19.2 is the next patch release.
Timetable: 1 July
π Changelog
π©Ή Fixes
- config: Add missing mocks for vue-devtools (#1321)
- runtime-utils: Prevent event duplication (#1328)
- config: Include tests without
.nuxt.extension (#1311) - deps: Drop
@nuxt/schemadependeny (fa3a99b4) - config: Use 'projects' for
vitest>= v3.2 (#1344) - module: Use user
viteversion to merge config (#1345) - runtime-utils: Handle computed defined using an object (#1342)
π‘ Chore
- Prefer
nuxtovernuxi(#1310) - Pin node types (93921643)
- Do not include dev-deps in
engines.nodecalculation (2f74359b) - Add type assertions for indexed access (51b4a4e3)
- Update installed-check flag (2b97d885)
β Tests
- Update stub name for nuxt v4 (e7b07843)
- Satisfy typescript (fb0dea24)
- Update cucumber test for nuxt v4 welcome screen template (8ec7782f)
- Simplify test (90278bac)
- Update workspace example (02f9b0a0)
- Make browser tests forward-compat with v4 (574ea5f9)
π€ CI
- Remove forced corepack installation (bf19bd3a)
- Run
knip(819aeacc) - Prepare environment before knipping (ec7d8ddd)
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Tomina (@Thomaash)
- lutejka (@lutejka)
- J-Michalek (@J-Michalek)
v3.19.1
π Changelog
π©Ή Fixes
- config: Upgrade nuxt devtools + disable vue devtools (#824)
- module: Import
defineConfigfrom vite (467886ea)
π‘ Chore
- Don't ignore
@nuxt/devtoolsupgrade (3ae47b43)
β€οΈ Contributors
- Daniel Roe (@danielroe)
v3.19.0
π Changelog
π Enhancements
- config: Support vitest workspaces with
defineVitestProject(#1258) - config: Add nuxt environment browser-testing support (#1294)
π©Ή Fixes
- config: Use
UserConfigrather thanInlineConfigfromvite(e2a1598b)
π Refactors
- Rename
core->e2einternally (a81c4498)
β Tests
- Set
environment: 'nuxt'for browser testing example (96769e55) - Add browser mode tests for nuxt/content components (#1284)
β€οΈ Contributors
- Jess (@JessicaSachs)
- Daniel Roe (@danielroe)
v3.18.0
π Enhancements
π©Ή Fixes
- vitest-environment: Respect custom
app.baseURLin manifest path (#1213) - runtime-utils: Wrap
WrapperComponentdefault slot in function (#1244)
π Refactors
- Rename
setuphook tobeforeAllfor clarity (#1221)
π Documentation
- Consistent URL formatting (#1217)
β Tests
- Update module example (1b42cef1)
- Await reject promise (1ecbb0e1)
- Reorder test options object (086415b0)
- Use
tinyglobby(6f16c6dd)
β€οΈ Contributors
- Jess (@JessicaSachs)
- Daniel Roe (@danielroe)
- m0nch1 (@m0nch1)
- Bobbie Goede (@BobbieGoede)
v3.17.2
3.17.2 is the next patch release.
Timetable: to be announced.
π Changelog
π©Ή Fixes
- vitest-environment: Migrate from unenv -> node-mock-http (#1179)
π‘ Chore
- Remove contents sqlite (54cb15be)
β€οΈ Contributors
- Daniel Roe (@danielroe)
v3.17.1
v3.17.0
π Changelog
π Enhancements
- runtime-utils: Allow modifying + removing endpoints (fee81510)
β Tests
- Update snapshot (4e5ff1f2)
β€οΈ Contributors
- Daniel Roe (@danielroe)
v3.16.0
3.16.0 is the next minor release.
π Highlights
You'll still see a warning from vitest:
Vitest "environmentMatchGlobs" is deprecated. Use "workspace" to define different configurations instead.
You can ignore this for the moment. I expect we will resolve this in the next major (which will drop support for vitest < 3).
π Changelog
π Enhancements
- e2e: Add
teardownTimeoutoption to set timeout forafterAllhook (af2ddf29)
π©Ή Fixes
- vitest-environment: Respect any configured
buildId(3f8599e6) - vitest-environment: Use correct base (c5ba2bac)
- runtime-utils: Pass custom global components to
mountSuspended(#1081) - runtime-utils: Allow overwriting object props in
mountSuspended(#1078) - runtime-utils: Do not use
defufor merging (#1089) - runtime-utils: Proxy wrapper props (#1099)
- runtime-utils: Define
$attrsin component render context (#1108) - module: Ensure
vi.hoistedis injected afterviimport (#1128) - runtime-utils: Proxy
wrapper.elementfrommountSuspended(#1110)
π¦ Build
- Use
typesVersionsfor node10 declarations (f19cee64)
π‘ Chore
π€ CI
β€οΈ Contributors
- Daniel Roe (@danielroe)
- Ryota Watanabe (@wattanx)
- Robin (@OrbisK)
- Romain Hamel (@romhml)
- Tobi (@tobiasdcl)
v3.15.4
π©Ή Fixes
- e2e: Use
tinyexecto resolve nuxi binary (7df895e3) - e2e: Increase default windows setup timeout (6f38dd58)
β Tests
- Bump timeout in test also (dcf038a0)
β€οΈ Contributors
- Daniel Roe (@danielroe)