testing/transports/surface_source.ts view source
(src: SurfaceSource): Promise<AppSurface | AppSurfaceSpec> Resolve a SurfaceSource to the underlying surface shape.
The inline variant returns the full AppSurfaceSpec (route closures
available). The snapshot variant returns the serialized AppSurface
shape only. Asymmetric on purpose — suites that need route_specs
(with closures) must use the inline variant; suites working on the
AppSurface shape work with either.
src
returns
Promise<AppSurface | AppSurfaceSpec> throws
Error- when called with `{kind: 'snapshot'}` — the snapshot