test: add test for autoImport: false#1688
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
ad7e1fb to
97404eb
Compare
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (15)
📝 WalkthroughWalkthroughThis pull request adds a complete new Nuxt application (app3) to the vitest-workspace examples directory, including Vue components (Counter), composables (useCounter), pages (index and counter), and comprehensive test coverage demonstrating mockNuxtImport, mountSuspended, renderSuspended, and registerEndpoint utilities. Additionally, the mount-suspended.spec.ts test in the main example is refactored to use externally hoisted mocks, the workspace package.json is updated to prepare app3, and the root vitest configuration adds console logging filtering for Suspense warnings. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔗 Linked issue
📚 Description
Added a test case to verify behavior when
autoImport: false.This ensures we can catch any missing imports in runtime-utils during testing.