Skip to content

chore: clarify fs routes testing - #3907

Open
ryux1 wants to merge 1 commit into
freshframework:mainfrom
ryux1:docs/fs-routes-testing
Open

ryux1 wants to merge 1 commit into
freshframework:mainfrom
ryux1:docs/fs-routes-testing

Conversation

@ryux1

@ryux1 ryux1 commented Sep 17, 2026

Copy link
Copy Markdown

What this PR does

Adds an info note to the route-testing guide that:

  • .fsRoutes() consumes route data from Fresh's build cache rather than scanning routes/ during a direct unit test
  • unit tests should register imported route handlers explicitly
  • tests that need filesystem discovery, layouts, or islands should use the documented full Vite build path

This addresses the confusing all-404 behavior discussed in Q&A #3906.

Validation

  • deno fmt --check docs/latest/testing/index.md
  • deno task check:docs

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.

1 participant