Home / Type/ RunnerState Type — react Architecture

RunnerState Type — react Architecture

Architecture documentation for the RunnerState type/interface in runner-watch.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e6d72041_c7b5_e7e3_f73e_ca701b4c6762["RunnerState"]
  3c2dde8c_5e90_a277_13bd_39083b18cadb["runner-watch.ts"]
  e6d72041_c7b5_e7e3_f73e_ca701b4c6762 -->|defined in| 3c2dde8c_5e90_a277_13bd_39083b18cadb
  style e6d72041_c7b5_e7e3_f73e_ca701b4c6762 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/snap/src/runner-watch.ts lines 110–130

export type RunnerState = {
  // Monotonically increasing integer to describe the 'version' of the compiler.
  // This is passed to `compile()` when compiling, so that the worker knows when
  // to reset its module cache (compared to using its cached compiler version)
  compilerVersion: number;
  isCompilerBuildValid: boolean;
  // timestamp of the last update
  lastUpdate: number;
  mode: RunnerMode;
  filter: TestFilter | null;
  debug: boolean;
  // Input mode for interactive pattern entry
  inputMode: 'none' | 'pattern';
  inputBuffer: string;
  // Autocomplete state
  allFixtureNames: Array<string>;
  matchingFixtures: Array<string>;
  selectedIndex: number;
  // Track last run status of each fixture (for autocomplete suggestions)
  fixtureLastRunStatus: Map<string, 'pass' | 'fail'>;
};

Frequently Asked Questions

What is the RunnerState type?
RunnerState is a type/interface in the react codebase, defined in compiler/packages/snap/src/runner-watch.ts.
Where is RunnerState defined?
RunnerState is defined in compiler/packages/snap/src/runner-watch.ts at line 110.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free