Skip to content

Test onError() in @fedify/h3 #862

Description

@dahlia

@fedify/h3 depends on onError() to turn a stored Fedify 406 into the final response when H3 reports 404. That small bridge is easy to miss when changing the integration.

Add a test in packages/h3/src/index.test.ts that verifies onError() responds with the stored __fedify_response__ only for 404 errors.

Suggested check: mise run check-each h3.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Priority

    Low

    Effort

    Low

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions