TRPCError UNAUTHORIZED during integration testing of context-dependent procedures
When designing integration tests for tRPC v10+ procedures, the goal is to verify failure paths—such as unauthorized access—without utilizing production credentials or a live authentication provider. The current implementation relies on a ctx object that is strictly typed. In a test harness, providing a mocked context that triggers a TRPCError with the UNAUTH