makeWatchRunner() — react Function Reference
Architecture documentation for the makeWatchRunner() function in runner-watch.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7865a05e_4feb_a8ba_40fe_4675700de39b["makeWatchRunner()"] 3c2dde8c_5e90_a277_13bd_39083b18cadb["runner-watch.ts"] 7865a05e_4feb_a8ba_40fe_4675700de39b -->|defined in| 3c2dde8c_5e90_a277_13bd_39083b18cadb 4b902db8_39ff_6c09_0a25_3a6bd51d0bf7["runTestCommand()"] 4b902db8_39ff_6c09_0a25_3a6bd51d0bf7 -->|calls| 7865a05e_4feb_a8ba_40fe_4675700de39b 3e4a24c5_3237_0f3f_ad07_853134dd7327["subscribeTsc()"] 7865a05e_4feb_a8ba_40fe_4675700de39b -->|calls| 3e4a24c5_3237_0f3f_ad07_853134dd7327 041267ea_9e71_a34d_3dd2_e6b5c802f1bf["subscribeFixtures()"] 7865a05e_4feb_a8ba_40fe_4675700de39b -->|calls| 041267ea_9e71_a34d_3dd2_e6b5c802f1bf 6449f3d6_f157_1b29_f37a_a1faad31e9e1["subscribeKeyEvents()"] 7865a05e_4feb_a8ba_40fe_4675700de39b -->|calls| 6449f3d6_f157_1b29_f37a_a1faad31e9e1 style 7865a05e_4feb_a8ba_40fe_4675700de39b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/snap/src/runner-watch.ts lines 416–451
export async function makeWatchRunner(
onChange: (state: RunnerState) => void,
debugMode: boolean,
initialPattern?: string,
): Promise<void> {
// Determine initial filter state
let filter: TestFilter | null = null;
let filterEnabled = false;
if (initialPattern) {
filter = {paths: [initialPattern]};
filterEnabled = true;
}
const state: RunnerState = {
compilerVersion: 0,
isCompilerBuildValid: false,
lastUpdate: -1,
mode: {
action: RunnerAction.Test,
filter: filterEnabled,
},
filter,
debug: debugMode,
inputMode: 'none',
inputBuffer: '',
allFixtureNames: [],
matchingFixtures: [],
selectedIndex: -1,
fixtureLastRunStatus: new Map(),
};
subscribeTsc(state, onChange);
subscribeFixtures(state, onChange);
subscribeKeyEvents(state, onChange);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does makeWatchRunner() do?
makeWatchRunner() is a function in the react codebase, defined in compiler/packages/snap/src/runner-watch.ts.
Where is makeWatchRunner() defined?
makeWatchRunner() is defined in compiler/packages/snap/src/runner-watch.ts at line 416.
What does makeWatchRunner() call?
makeWatchRunner() calls 3 function(s): subscribeFixtures, subscribeKeyEvents, subscribeTsc.
What calls makeWatchRunner()?
makeWatchRunner() is called by 1 function(s): runTestCommand.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free