Add testutil.HttpServer
test: Add testutil.HttpServer
Add testutil.HttpServertestadd testutil httpserver
Committed by nhooyr
commit message
test: Add testutil.HttpServer
The goal is to remove supertest as it does not support typescript well
and there's really no good reason for the dependency. Also no websocket
testing support.Editor assessment
`test: Add testutil.HttpServer` names the new helper precisely, and the body teaches the decision: supertest is being removed because it supports TypeScript poorly and offers no websocket testing, and the dependency has no justification to stay. Rationale, alternatives weighed, and scope of intent — the substance that makes a test-infrastructure change instructive — in three sentences. The test type is accurate, the capitalized start is permitted, the subject is period-free, and nothing is malformed. An exemplar.