Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.9.0 #626

Closed
wants to merge 1 commit into from
Closed

v3.9.0 #626

wants to merge 1 commit into from

Conversation

danielroe
Copy link
Member

3.9.0 is the next minor release.

Timetable: to be announced.

👉 Changelog

compare changes

🚀 Enhancements

  • Mock (83e221165)
  • defineConfigWithNuxtEnv helper (#3)
  • mockNuxtImport utility (#7)
  • ⚠️ Add nuxt-vitest module (#34)
  • ⚠️ Rename defineConfigWithNuxt to defineVitestConfig (#45)
  • Add mockComponent utility (#47)
  • Adopt new tab interface (e597d4a4e)
  • Basic devtools indicator (c04b49086)
  • Support injects, global properties (and routing!) (#154)
  • Allow passing mount options in mountSuspended (#159)
  • nuxt-vitest: Allow configuring nuxt rootDir and overrides (#187)
  • ⚠️ Option to replace happy-dom with jsdom (#121)
  • Register all auto-imports for mocking (#254)
  • vitest-environment-nuxt: Allow mocking imports within setup files (#274)
  • Add renderSuspended for use with testing-library (#302)
  • utils: Add method option to registerEndpoint (#346)
  • Allow indexedDB mock + disabling IntersectionObserver (#361)
  • Expose setupState from mountSuspended (#399)
  • Add nuxt-vitest re-exports (#230)
  • Add nuxt-vitest and vitest-environment-nuxt code and tests (f4ae58ac5)
  • Use internal implementation of nuxt-vitest (#235)

🩹 Fixes

  • Import explicitly h (#37)
  • ⚠️ Remove nuxt as default test environment (#30)
  • Modules' meta can be optional (55c449083)
  • dev: Do not terminate the process even if no tests (e0a62ade3)
  • ui: Wait for Vitest UI to initiate (2c576bcb9)
  • Avoid duplication vi injection (910d70acc)
  • Accept object syntax for to prop in router mock (#55)
  • nuxt-vitest: Exclude import protection plugin (396c593b8)
  • Correct type of defineVitestConfig (#72)
  • Mock core nuxt composables (#83)
  • Revert type change to defineVitestConfig (#86)
  • Pass resolved runtimeConfig into nuxt environment (#101)
  • nuxt-vitest: Inject vue plugins if missing (#130)
  • nuxt-vitest: Unshift vue plugins in newer nuxts (#148)
  • Support awaiting nuxt app promises (#147)
  • Support unobserve method in mocked IntersectionObserver (#150)
  • Narrow down vitest inline patterns (d9ae02b3d)
  • Allow mocking more nuxt auto-imports (14f037141)
  • Move nuxt overrides to environmentOptions (93a8e1eb4)
  • utils: Proxy context to capture emitted events in wrapper (4b2e824cb)
  • Defer to vue/test-utils for the type of mountSuspended (182609a36)
  • nuxt-vitest: Respect cwd as vite test dir (1114df504)
  • vitest-environment-nuxt: Register imports after context is created (2c9aa5a32)
  • Import vitest/node via file url (53207eb5b)
  • Don't transpile/override NODE_ENV (fd7805566)
  • Properly set default route (#232)
  • Allow configuring default starting url, and respect baseURL (9e46795d0)
  • Set rootId when module is enabled (and set test) (4d8e3ebd5)
  • Ensure module is installed when getting nuxt config (4b6aebcbd)
  • Remove support for inline: true and avoid inlining vite/vue (4d3356378)
  • Automatically polyfill fetch within tests (#244)
  • Ensure vitest mocking plugin is placed last (#263)
  • Vue-router with jsdom (#277)
  • Improve fetch polyfill implementations (#279)
  • nuxt-vitest: Default rootId to undefined rather than false (83ae76ba8)
  • Drop whatwg-fetch polyfill and update to nuxt v3.7 (#320)
  • Handle mocking composables that use default export (cdff55070)
  • vitest-environment-nuxt: Import @testing-library/vue within renderSuspended (#331)
  • ⚠️ Ignore query params when checking if an endpoint is mocked (c1f8890b3)
  • Mock app manifest if required (#354)
  • Add handler for builds/meta/dev.json as well (b3fdbc0f7)
  • Respect custom buildAssetsDir when mocking manifests (#371)
  • Support components with options API style export (#391)
  • Add @nuxt/test-utils-nightly to deps to inline (0caf44d06)
  • Use implied .d.mts types (d9694f214)
  • Add setupState type to mountSuspended return type (#400)
  • Add runtime fixture to workspace and address regressions (#240)
  • Opt-in to future vitest option (#247)
  • Use vite-ignore for playwright dynamic import (c1ac4a08a)
  • Do not set process.browser globally (#250)
  • Support transpiling nuxt nightly releases (c63f69c8b)
  • Rewrite mock plugin for compat with vite 5/rollup 4 (d0ba5af37)
  • Do not skip transforms on test files (3bbcc1ea6)
  • Add @vitest/ui to peer deps (7f4f6053e)
  • Use buildDir option (#596)
  • ⚠️ Load nuxt app within setupFiles (#260)
  • Teardown build directories after tests (#597)
  • Import useRouter explicitly in entry (129d83356)
  • Return absolute path for stub entry (180bb3062)
  • Don't return absolute path in dev mode (f47dd9a31)

💅 Refactors

  • Move to monorepo (#31)
  • Split core utils to core/ (f144cb40b)
  • Clean up internal code imports (#245)
  • Use defu rather than mergeConfig from vite (#246)
  • Further split vitest from vite config (ef58e4cb5)
  • Split out mock transform plugin w/ tests (a37fa408b)
  • Remove rollup implementation of transform plugin (713459678)

📖 Documentation

  • playground: Demo usage of co-exists unit and nuxt testing (#6)
  • Add JSDoc comments (#205)
  • Add documentation for mountSuspended (#227)
  • Add basic README and missing LICENCE (51eb9de23)

📦 Build

  • Fix build issues and correct dependencies (3e2f8b293)

🏡 Chore

✅ Tests

  • Update playground to 0.4.5 devtools (7d4a6b28d)
  • Add useHead to fixture (6d4bb420c)
  • Add type tests (9de62b6e5)
  • Await 2 ticks after navigation for route to update (cb6c1e3a6)
  • Correct test assertion (c644bdb38)
  • Avoid depending on specific number of ticks (e98d71ea1)
  • Update test to use server rather than live api (7df6be28c)
  • Add a few more basic examples for e2e tests (490753c47)
  • Add jest example/test (#224)
  • Add type test (#241)
  • Make indexeddb plugin client-only (0477e4143)

🎨 Styles

🤖 CI

  • Add testing workflow (ce74b0b55)
  • Add lint workflow for pushes to main (f141b8d40)
  • Add workflow to test examples (0c3c318f7)
  • Prepare environment before running module test (5be069dc4)
  • 'nightly' releases on pushes to main (#210)
  • Fetch full history (d61614b10)
  • Install playwright manually (58906de3e)
  • Remove extra branch from release workflow (e24d884fa)
  • Prepare build environment (6d8e71ad5)
  • Run unit tests in ci (cbd5616a4)
  • Support automated release prs (#623)
  • Fetch all commits in creating changelog (6f22b0965)
  • Disable changelog creation script for now (5ef70c358)

⚠️ Breaking Changes

  • ⚠️ Add nuxt-vitest module (#34)
  • ⚠️ Rename defineConfigWithNuxt to defineVitestConfig (#45)
  • ⚠️ Option to replace happy-dom with jsdom (#121)
  • ⚠️ Remove nuxt as default test environment (#30)
  • ⚠️ Ignore query params when checking if an endpoint is mocked (c1f8890b3)
  • ⚠️ Load nuxt app within setupFiles (#260)

❤️ Contributors

@danielroe danielroe closed this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant