MCPcopy Index your code
hub / github.com/react/react / makeWatchRunner

Function makeWatchRunner

compiler/packages/snap/src/runner-watch.ts:220–239  ·  view source on GitHub ↗
(
  onChange: (state: RunnerState) => void,
  filterMode: boolean,
)

Source from the content-addressed store, hash-verified

218}
219
220export async function makeWatchRunner(
221 onChange: (state: RunnerState) => void,
222 filterMode: boolean,
223): Promise<void> {
224 const state = {
225 compilerVersion: 0,
226 isCompilerBuildValid: false,
227 lastUpdate: -1,
228 mode: {
229 action: RunnerAction.Test,
230 filter: filterMode,
231 },
232 filter: filterMode ? await readTestFilter() : null,
233 };
234
235 subscribeTsc(state, onChange);
236 subscribeFixtures(state, onChange);
237 subscribeKeyEvents(state, onChange);
238 subscribeFilterFile(state, onChange);
239}

Callers 1

mainFunction · 0.90

Calls 5

readTestFilterFunction · 0.90
subscribeTscFunction · 0.85
subscribeFixturesFunction · 0.85
subscribeKeyEventsFunction · 0.85
subscribeFilterFileFunction · 0.85

Tested by

no test coverage detected