Skip to content

Releases: nuxt/test-utils

v3.20.0

24 Oct 03:10
9100b1e

Choose a tag to compare

3.20.0 is the next minor release.

πŸ‘‰ Changelog

compare changes

πŸš€ Enhancements

  • runtime-utils: Automatic ref unwrapping for wrapper.vm (#1405)
  • runtime: Allow registerEndpoint to work with native fetch (#1415)
  • runtime: Add scoped option 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 .config folder (#1381)
  • e2e: Bump windows teardown timeout to 60s (9f1f712da)
  • runtime: Allow registerEndpoint to work with $fetch.create (#1403)
  • Handle optional chaining for imports in setupImportMocking function (#1433)
  • vitest: Support virtualConsole.forwardTo in jsdom (6b4076a04)
  • vitest: Call window.close on jsdom teardown (25b87eef3)
  • vitest: Stub IntersectionObserver in teardown (230dd240a)

πŸ“– Documentation

  • Use jsdoc standard @default formatting (#1379)
  • Fix typo in setup hook deprecation text (#1380)

🏑 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

v3.19.2

01 Jul 15:15
baaecf7

Choose a tag to compare

3.19.2 is the next patch release.

Timetable: 1 July

πŸ‘‰ Changelog

compare changes

🩹 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/schema dependeny (fa3a99b4)
  • config: Use 'projects' for vitest >= v3.2 (#1344)
  • module: Use user vite version to merge config (#1345)
  • runtime-utils: Handle computed defined using an object (#1342)

🏑 Chore

  • Prefer nuxt over nuxi (#1310)
  • Pin node types (93921643)
  • Do not include dev-deps in engines.node calculation (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

❀️ Contributors

v3.19.1

25 May 19:38
6ac7bf4

Choose a tag to compare

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • config: Upgrade nuxt devtools + disable vue devtools (#824)
  • module: Import defineConfig from vite (467886ea)

🏑 Chore

  • Don't ignore @nuxt/devtools upgrade (3ae47b43)

❀️ Contributors

v3.19.0

15 May 14:54
dce1c41

Choose a tag to compare

πŸ‘‰ Changelog

compare changes

πŸš€ Enhancements

  • config: Support vitest workspaces with defineVitestProject (#1258)
  • config: Add nuxt environment browser-testing support (#1294)

🩹 Fixes

  • config: Use UserConfig rather than InlineConfig from vite (e2a1598b)

πŸ’… Refactors

  • Rename core -> e2e internally (a81c4498)

βœ… Tests

  • Set environment: 'nuxt' for browser testing example (96769e55)
  • Add browser mode tests for nuxt/content components (#1284)

❀️ Contributors

v3.18.0

03 May 16:35
aeb3583

Choose a tag to compare

compare changes

πŸš€ Enhancements

  • e2e: Add support for bun test runner (#1264)
  • config: Support vitest browser mode (#1271)

🩹 Fixes

  • vitest-environment: Respect custom app.baseURL in manifest path (#1213)
  • runtime-utils: Wrap WrapperComponent default slot in function (#1244)

πŸ’… Refactors

  • Rename setup hook to beforeAll for clarity (#1221)

πŸ“– Documentation

  • Consistent URL formatting (#1217)

βœ… Tests

❀️ Contributors

v3.17.2

08 Mar 16:52
0e86cfb

Choose a tag to compare

3.17.2 is the next patch release.

Timetable: to be announced.

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • vitest-environment: Migrate from unenv -> node-mock-http (#1179)

🏑 Chore

❀️ Contributors

v3.17.1

02 Mar 23:44
4c71341

Choose a tag to compare

3.17.1 is the next patch release.

Timetable: to be announced.

πŸ‘‰ Changelog

compare changes

🩹 Fixes

  • runtime-utils: Ensure event listeners props are called (#1135)

❀️ Contributors

v3.17.0

21 Feb 09:22
f204f80

Choose a tag to compare

πŸ‘‰ Changelog

compare changes

πŸš€ Enhancements

  • runtime-utils: Allow modifying + removing endpoints (fee81510)

βœ… Tests

❀️ Contributors

v3.16.0

20 Feb 20:45
39c6ca3

Choose a tag to compare

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

compare changes

πŸš€ Enhancements

  • e2e: Add teardownTimeout option to set timeout for afterAll hook (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 defu for merging (#1089)
  • runtime-utils: Proxy wrapper props (#1099)
  • runtime-utils: Define $attrs in component render context (#1108)
  • module: Ensure vi.hoisted is injected after vi import (#1128)
  • runtime-utils: Proxy wrapper.element from mountSuspended (#1110)

πŸ“¦ Build

  • Use typesVersions for node10 declarations (f19cee64)

🏑 Chore

  • Update vitest peerDep version (c4ee71a4)
  • Add root package to workspace (d7c63b5c)

πŸ€– CI

  • Force latest corepack (99ae34c0)
  • Add new release workflow (#1131)

❀️ Contributors

v3.15.4

12 Jan 10:54
d9c5fea

Choose a tag to compare

compare changes

🩹 Fixes

  • e2e: Use tinyexec to resolve nuxi binary (7df895e3)
  • e2e: Increase default windows setup timeout (6f38dd58)

βœ… Tests

❀️ Contributors