Skip to content

Testing

  • TestAppHandle Integration-test handle returned by app.test() (where app came from host.build()).
  • mockContext Constructs a FlareHttpContext with a synthetic FlareRequest.
  • mockContainer Constructs a minimal Container that resolves tokens from a developer-provided map.
  • inspectBuild Captures a read-only snapshot of a FlareHost and optional built IFlareApp.
  • AppTestOptions Options accepted by app.test().
  • FlareTestError Thrown by the in-process test harness when the harness itself rejects an invalid input or detects misuse.
  • TestAppHandle Integration-test handle returned by app.test() (where app came from host.build()).
  • inspectBuild Captures a read-only snapshot of a FlareHost and optional built IFlareApp.
  • mockContainer Constructs a minimal Container that resolves tokens from a developer-provided map.
  • mockContext Constructs a FlareHttpContext with a synthetic FlareRequest.
  • AppInspectSnapshot Snapshot of the built app, when one was passed: presence, kind, and response flags.
  • AppTestOptions Options accepted by app.test().
  • BuildSnapshot The aggregate snapshot inspectBuild() returns: host, HTTP arc, and app sections.
  • HostInspectSnapshot Snapshot of the host: lifecycle state, config, registration counts, and test-mode flags.
  • HttpArcInspectSnapshot Snapshot of the HTTP arc’s compiled state: routes, pipelines, and router view.
  • MockContainer Minimal DI container surface returned by mockContainer.
  • MockContextOpts Options accepted by mockContext.
  • PipelineInspectSnapshot Snapshot of one compiled HTTP pipeline: its route, sort score, and exec/CORS shape.
  • RouterInspectSnapshot Live view over the compiled router: match directly and read back segment boundaries.
  • TestRequestInit Init options accepted by a test handle’s fetch(target, init).

Last updated: