Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
339 stars 42 forks source link

chore(deps-dev): bump @nuxt/test-utils from 3.8.1 to 3.9.0 #444

Closed dependabot[bot] closed 5 months ago

dependabot[bot] commented 6 months ago

Bumps @nuxt/test-utils from 3.8.1 to 3.9.0.

Release notes

Sourced from @​nuxt/test-utils's releases.

v3.9.0

👀 Highlights

v3.9.0 is a significant release of @nuxt/test-utils. Most notably:

  • We've split it out from the core nuxt/nuxt repository for a decoupled release cycle.
  • We've merged in nuxt-vitest and vitest-environment-nuxt into a single repository for both runtime unit testing and e2e/browser testing with Nuxt.
  • We've added documentation on https://nuxt.com/docs/getting-started/testing to get you started.

✅ Upgrading

... from @nuxt/test-utils

If you were upgrading from @nuxt/test-utils, the only significant change is to update your imports to @nuxt/test-utils/e2e (for clarity).

If you were using the jest runner, this should now be auto-detected and you can remove runner: 'jest' from your test configuration.

... from nuxt-vitest

If you previously used nuxt-vitest, we have now merged it into @nuxt/test-utils, as well as implementing a range of fixes.

  1. Uninstall nuxt-vitest

    npm remove nuxt-vitest
    
  2. Update your vitest versions to v1, and update @nuxt/test-utils and vitest-environment-nuxt to the latest versions:

      "devDependencies": {
    -   "@nuxt/test-utils": "^3.8.1",
    +   "@nuxt/test-utils": "^3.9.0",
    -   "@vitest/coverage-v8": "0.33.0",
    +   "@vitest/coverage-v8": "^1.0.4",
        "@vue/test-utils": "^2.4.3",
    -   "nuxt-vitest": "^0.11.5",
    -   "vitest": "^0.33.0",
    +   "vitest": "^1.0.4",
    +   "vitest-environment-nuxt": "^1.0.0"
      },
    
  3. Update your nuxt.config if you have added the nuxt-vitest module to it, and update the configuration from vitest to testUtils:

      export default defineNuxtConfig({
       modules: [
    

... (truncated)

Changelog

Sourced from @​nuxt/test-utils's changelog.

v3.9.0

compare changes

🚀 Enhancements

  • Add nuxt-vitest re-exports (#230)
  • Add nuxt-vitest and vitest-environment-nuxt code and tests (f4ae58ac)
  • Use internal implementation of nuxt-vitest (#235)
  • e2e: Auto-detect jest runner (ae37b0ee)
  • ⚠️ Read .env.test + allow overriding with nuxt.dotenv (#655)

🩹 Fixes

  • Add @​nuxt/test-utils-nightly to deps to inline (0caf44d0)
  • Use implied .d.mts types (d9694f21)
  • 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 (c1ac4a08)
  • Do not set process.browser globally (#250)
  • Support transpiling nuxt nightly releases (c63f69c8)
  • Rewrite mock plugin for compat with vite 5/rollup 4 (d0ba5af3)
  • Do not skip transforms on test files (3bbcc1ea)
  • Add @​vitest/ui to peer deps (7f4f6053)
  • Use buildDir option (#596)
  • ⚠️ Load nuxt app within setupFiles (#260)
  • Teardown build directories after tests (#597)
  • Import useRouter explicitly in entry (129d8335)
  • Return absolute path for stub entry (180bb306)
  • Don't return absolute path in dev mode (f47dd9a3)
  • Clone overrides (df84d0c1)
  • Skip vite-plugin-vue-inspector:post plugin (8a6a0523)
  • Clean up wrappers when calling renderSuspended (5b189115)
  • Exclude vite-plugin-checker from runtime vitest config (053a5dff)
  • Resolve devtools url after vitest config is resolved (1206db79)
  • Remove module override of app.rootId (e662c1f0)
  • Remove rootId environment option (dead5e3d)
  • Add back rootId environment option" (827180ec)
  • runtime-utils: Don't stub helpers when shallow (#632)
  • Avoid enumerating keys on render context (43b2724b)
  • Support typescript entry file (c5806009)
  • vitest-environment: Normalise setupFiles before merge (#653)
  • module: Close nuxt before shutting down (17cf9435)
  • runtime: Do not assign readonly setup state (8d799275)
  • runtime: Implement setProps (522f8bf5)
  • vitest-environment: Handle different entry format (5c07bb48)
  • runtime: Import reactive and unref (d68cdae9)

💅 Refactors

... (truncated)

Commits
  • eb0833c v3.9.0
  • 5ef70c3 ci: disable changelog creation script for now
  • b7c0be5 chore(deps): pin dependencies (#255)
  • 6f22b09 ci: fetch all commits in creating changelog
  • 0dd61e0 ci: support automated release prs (#623)
  • f47dd9a fix: don't return absolute path in dev mode
  • 180bb30 fix: return absolute path for stub entry
  • 129d833 fix: import useRouter explicitly in entry
  • bbd67b2 chore: use explicit version
  • 8c63cfe chore: use workspace version for vitest-environment-nuxt
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7b40c14) 93.34% compared to head (2d9eb61) 93.34%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #444 +/- ## ======================================= Coverage 93.34% 93.34% ======================================= Files 6 6 Lines 631 631 Branches 120 119 -1 ======================================= Hits 589 589 + Misses 42 41 -1 - Partials 0 1 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

dependabot[bot] commented 5 months ago

Looks like @nuxt/test-utils is up-to-date now, so this is no longer needed.