Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(runtime-utils): pass original to mockNuxtImport factory#1552

Merged
danielroe merged 1 commit intonuxt:mainnuxt/test-utils:mainfrom
yamachi4416:pass-original-mock-nuxt-importyamachi4416/test-utils:pass-original-mock-nuxt-importCopy head branch name to clipboard
Jan 20, 2026
Merged

feat(runtime-utils): pass original to mockNuxtImport factory#1552
danielroe merged 1 commit intonuxt:mainnuxt/test-utils:mainfrom
yamachi4416:pass-original-mock-nuxt-importyamachi4416/test-utils:pass-original-mock-nuxt-importCopy head branch name to clipboard

Conversation

@yamachi4416
Copy link
Copy Markdown
Member

@yamachi4416 yamachi4416 commented Jan 17, 2026

🔗 Linked issue

❓ 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

An original argument was added to the mockNuxtImport's factory function. this makes partial mocking easier

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 17, 2026

Open in StackBlitz

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

commit: 9787b15

@yamachi4416 yamachi4416 marked this pull request as ready for review January 17, 2026 02:25
@yamachi4416 yamachi4416 marked this pull request as draft January 17, 2026 02:52
@yamachi4416 yamachi4416 marked this pull request as ready for review January 17, 2026 03:36
Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@danielroe danielroe merged commit 22bda4f into nuxt:main Jan 20, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request Jan 20, 2026
@yamachi4416 yamachi4416 deleted the pass-original-mock-nuxt-import branch January 21, 2026 13:06
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.