Skip to content

Releases: nuxt/test-utils

v3.14.3

07 Oct 10:48
fd46665
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • vitest-environment: Respect custom url in setup (#957)
  • runtime-utils: Pass global directives to mountSuspended (#960)
  • runtime-utils: Pass global directives to renderSuspended (cf1b48ff)
  • runtime-utils: Support options api data, computed + methods (#963)

🏡 Chore

✅ Tests

  • Bump playwright setup time for windows (21ade1f2)

❤️ Contributors

v3.14.2

10 Sep 13:27
f7afe52
Compare
Choose a tag to compare

compare changes

🔥 Performance

  • e2e: Use tinyexec to run commands (#939)

🩹 Fixes

  • config: Exclude new nuxt import-conditions plugin (7cc8f653b)

📖 Documentation

🏡 Chore

  • vitest-environment-nuxt: Specify license is MIT (#919)
  • Release vitest-environment-nuxt (e30c044cf)
  • Update @nuxtjs/i18n separately (3d8955d36)
  • Set compatibilityDate in fixtures (7723f969c)
  • Update vitest type import (05e94fcc4)
  • Trim tag from tinyexec stdout (2b50cfee0)

❤️ Contributors

v3.14.1

13 Aug 11:21
86d09da
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • e2e,config: Provide fallback compatibilityDate (8e01e3f7)
  • module: Don't include type-check plugin in resolved vitest plugins (#911)

📖 Documentation

  • Provide intellisense hints for setup properties (#906)

🏡 Chore

  • Dedupe vitest (6e36b547)
  • Ignore upgrading dependencies for stubbed libs (4329c4dd)

❤️ Contributors

v3.14.0

26 Jul 20:15
587a0b5
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • runtime-utils: Expose setup result from renderSuspended (#852)
  • e2e: Allow overwriting env variables in setup (#903)
  • e2e: Allow running e2e tests against existing server (#803)
  • e2e: Allow updating env in context before setup runs (#812)

🩹 Fixes

  • runtime-utils: Ts-ignore #build/ import until nuxt v3.12 release (66b23ae6)
  • runtime-utils: Allow setProps to replace an array (#877)

🏡 Chore

✅ Tests

  • Bump timeout in windows browser spec (73e2c716)

❤️ Contributors

v3.13.1

20 May 04:10
fcc1060
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Revert execa to v8 for now (fef8b062)
  • config: Force buildId to test manually (25e081e4)
  • runtime-utils: Use appId fallback after tryUseNuxtApp (#849)

🏡 Chore

🤖 CI

  • Run test suite on windows (#851)

❤️ Contributors

v3.13.0

15 May 16:03
ff98d93
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • e2e: Improve types for $fetch (b21d9a54)
  • deps: Upgrade execa to v9 (#843)

🔥 Performance

  • e2e: Don't iterate when cleaning up if nothing registered (#753)

🩹 Fixes

  • e2e: Improve types for fetch and mockLogger (eb40a6a6)
  • e2e: Force string response within startServer (1b182505)
  • e2e: Improve return types for mockLogger (21aa7a2f)
  • runtime: Improve types for renderSuspended and mountSuspended (1636cede)
  • e2e: Revert changes for $fetch inference to unbreak build (dd295d39)
  • vitest: Strongly type vitest environment options (37582c71)
  • module: Correctly filter vite plugins (021824d0)
  • runtime: Preserve setupState return (ab7fd457)
  • playwright: Bump dependency and remove polyfill (#819)
  • runtime: Use effectScope in renderSuspended (#820)
  • e2e: Type $fetch using globalThis instead (b1269edb)
  • Set buildId to nuxt-app for compatibility with nuxt v3.12+ (a00b2c1f)
  • runtime-utils: Use tryUseNuxtApp rather than buildId override (726e0a2d)

🏡 Chore

❤️ Contributors

v3.12.1

15 Apr 14:51
bf553e6
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Publish playwright.d.ts (#797)

❤️ Contributors

v3.12.0

16 Mar 21:46
9e33a15
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • e2e: Add 'route'/'hydration' options for page.goto() (#739)
  • e2e: Add playwright runner (#776)

🩹 Fixes

  • config: Remove nuxt's custom vite logger (eca52f5c)

🏡 Chore

  • Force correct typing for e2e subpath (9fd93a8c)
  • Don't run publish step separately (0078d0bc)

🤖 CI

❤️ Contributors

v3.11.0

28 Jan 12:32
5fe47be
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • vitest-environment: Add support for in-source testing (#651)

🩹 Fixes

  • runtime: Reset modules after nuxt setup runs (#726)

✅ Tests

  • Add example of mocking vue-router (e293cea1)
  • Add example of mocking nuxt useRoute (fe465193)

❤️ Contributors

v3.10.0

17 Jan 15:52
bc86d23
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • e2e: Add cucumber test runner (#711)
  • e2e: Support env option for startServer (#640)

🩹 Fixes

  • runtime-utils: Resolve to in RouterLink stub (#687)
  • Mark afterAll and setup hooks as async (#702)
  • module: Always append import when mocking (#701)

🏡 Chore

  • Add required dev deps to app-vitest example (#712)
  • Pin vue/nuxt versions (00674cd0)

✅ Tests

  • Update config key (25060645)
  • Add example test for nuxt-injected value (#663)
  • Update to actually use $t (#675)

🤖 CI

❤️ Contributors