Closed danielroe closed 11 months ago
The project has undergone a restructuring, integrating the nuxt-vitest
module into the official @nuxt/test-utils
. This transition involves updating import paths in configuration and test files to align with the new module locations, reflecting the shift towards an officially supported unit testing framework using Vitest in Nuxt environments.
File(s) | Change Summary |
---|---|
.nuxtrc , vitest.config.mjs |
Updated module paths from nuxt-vitest to @nuxt/test-utils/module and test config import paths. |
test/e2e.spec.ts |
Changed import of url function to @nuxt/test-utils/e2e . |
test/unit.spec.ts |
Updated import paths for mountSuspended and NuxtTime component. |
nuxt-vitest
into @nuxt/test-utils
, which is directly addressed by the changes in this PR as they update the import paths to the new module locations.🐇 In the burrow of code, a change took flight,
🌟 Fromnuxt-vitest
to@nuxt
's light.
🛠️ Paths now lead to a tested dawn,
🎉 Where bugs are caught and swiftly gone.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
Packages | Version | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|---|
vitest | 0.33.0...1.0.4 | None | +1/-1 |
1.34 MB | oreanno |
Following the steps in https://github.com/nuxt/test-utils/issues/644, this PR migrates to the latest alpha of
@nuxt/test-utils
which includesnuxt-vitest
.It's primarily intended for testing any potential regressions prior to release.
Summary by CodeRabbit
Refactor
Tests
@nuxt/test-utils
module.