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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

Priority

Low

Effort

Low

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions