Skip to content

docs: explain Vitest autoload mocking setup#517

Open
YNan-varamor wants to merge 2 commits into
fastify:mainfrom
YNan-varamor:docs/475-vitest-inline-autoload
Open

docs: explain Vitest autoload mocking setup#517
YNan-varamor wants to merge 2 commits into
fastify:mainfrom
YNan-varamor:docs/475-vitest-inline-autoload

Conversation

@YNan-varamor

Copy link
Copy Markdown

Summary

  • document the Vitest server.deps.inline setup for @fastify/autoload
  • explain why Vitest mocks can miss autoloaded ESM/TypeScript modules when Autoload is externalized

Addresses #475.

Validation

  • npm run lint
  • git diff --check

AI assistance

This change was prepared with assistance from OpenAI Codex.

@YNan-varamor YNan-varamor marked this pull request as ready for review June 23, 2026 04:43
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