Skip to content

Conversation

@JessicaSachs
Copy link
Contributor

@JessicaSachs JessicaSachs commented Jun 17, 2025

πŸ”— Linked issue

Resolves #1330

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Currently applications that use Nuxt Layers which have their own dependencies (/my-layer/node_modules) are not resolved. The search paths for the Nuxt project do not include the Layer for whatever reason. This differs from behavior when developing the application normally.

@JessicaSachs JessicaSachs changed the title fix: adding support for Nuxt Layers in an E2E application fix: adding support for testing projects that depend on Nuxt Layers Jun 17, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 17, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/test-utils@1329

commit: 43fab42

@JessicaSachs
Copy link
Contributor Author

JessicaSachs commented Jun 18, 2025

I was mistaken about the root cause of the issue I was getting with layers. All Vitest E2E tests are currently broken due to a regression introduced in Nuxt 3.16.0 when Nuxt adopted exsolve.

The fix for exsolve should be here unjs/exsolve#25 and Nuxt is targeting ^1.0.5 so once that fix is merged, Nuxt Vitest E2E should be working again for all users.

I'm going to close this PR, though I intend to create a new one in a bit to enable the E2E tests for this repository.

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.

App that uses Layers does not add modules to resolution path (Vitest e2e)

1 participant