start static method
Starts the app and creates a test client.
The app is started on an ephemeral port (port 0). Call close when done to stop the server.
Implementation
static Future<TestClient> start(Chase app) async {
_suppressLogs();
await runZoned(
() => app.start(port: 0),
zoneSpecification: ZoneSpecification(
print: (self, parent, zone, line) {
// Suppress server startup message
},
),
);
final port = app.server!.port;
return TestClient._(app, port);
}