runner.ts — react Source File
Architecture documentation for runner.ts, a typescript file in the react codebase. 32 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1fd49604_fb16_2568_4971_9eca12fd6a73["runner.ts"] dc3fd0be_e038_0596_3080_c93d9784f34e["constants.ts"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> dc3fd0be_e038_0596_3080_c93d9784f34e 4d76833e_f078_3b83_e453_82ab13e17c43["fixture-utils.ts"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 4d76833e_f078_3b83_e453_82ab13e17c43 f3c89b3a_e1fb_1f97_edcb_af6fb0ae7691["TestFilter"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> f3c89b3a_e1fb_1f97_edcb_af6fb0ae7691 35f5a65c_e6e8_8fa8_f9c0_158316bd8913["getFixtures"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 35f5a65c_e6e8_8fa8_f9c0_158316bd8913 0e6b4c6b_7bcc_eac7_3f6d_ff9990f24223["reporter.ts"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 0e6b4c6b_7bcc_eac7_3f6d_ff9990f24223 18584f0a_8c4b_c703_29df_c6de9a566519["TestResult"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 18584f0a_8c4b_c703_29df_c6de9a566519 c960dc92_3f4f_b937_c791_da0178642f32["TestResults"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> c960dc92_3f4f_b937_c791_da0178642f32 4cc3311f_4441_948f_0625_b0189227e270["report"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 4cc3311f_4441_948f_0625_b0189227e270 3231d288_7a22_d6ca_c3cc_bc226b0b74ef["update"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 3231d288_7a22_d6ca_c3cc_bc226b0b74ef 3c2dde8c_5e90_a277_13bd_39083b18cadb["runner-watch.ts"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 3c2dde8c_5e90_a277_13bd_39083b18cadb 8ddbbd71_8b2b_d295_9564_ca17e003845d["RunnerAction"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 8ddbbd71_8b2b_d295_9564_ca17e003845d e6d72041_c7b5_e7e3_f73e_ca701b4c6762["RunnerState"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> e6d72041_c7b5_e7e3_f73e_ca701b4c6762 7865a05e_4feb_a8ba_40fe_4675700de39b["makeWatchRunner"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 7865a05e_4feb_a8ba_40fe_4675700de39b 162e6a49_36d0_cdf1_de46_a40230bcfbc6["watchSrc"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> 162e6a49_36d0_cdf1_de46_a40230bcfbc6 style 1fd49604_fb16_2568_4971_9eca12fd6a73 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Worker} from 'jest-worker';
import {cpus} from 'os';
import process from 'process';
import * as readline from 'readline';
import ts from 'typescript';
import yargs from 'yargs';
import {hideBin} from 'yargs/helpers';
import {BABEL_PLUGIN_ROOT, PROJECT_ROOT} from './constants';
import {TestFilter, getFixtures} from './fixture-utils';
import {TestResult, TestResults, report, update} from './reporter';
import {
RunnerAction,
RunnerState,
makeWatchRunner,
watchSrc,
} from './runner-watch';
import * as runnerWorker from './runner-worker';
import {execSync} from 'child_process';
import fs from 'fs';
import path from 'path';
import {minimize} from './minimize';
import {parseInput, parseLanguage, parseSourceType} from './compiler';
import {
PARSE_CONFIG_PRAGMA_IMPORT,
PRINT_HIR_IMPORT,
PRINT_REACTIVE_IR_IMPORT,
BABEL_PLUGIN_SRC,
} from './constants';
import chalk from 'chalk';
const WORKER_PATH = require.resolve('./runner-worker.js');
const NUM_WORKERS = cpus().length - 1;
readline.emitKeypressEvents(process.stdin);
type TestOptions = {
sync: boolean;
workerThreads: boolean;
watch: boolean;
update: boolean;
pattern?: string;
debug: boolean;
verbose: boolean;
};
type MinimizeOptions = {
path: string;
update: boolean;
};
type CompileOptions = {
path: string;
debug: boolean;
// ... (474 more lines)
Domain
Subdomains
Dependencies
- RunnerAction
- RunnerState
- TestFilter
- TestResult
- TestResults
- chalk
- child_process
- compiler.ts
- constants.ts
- fixture-utils.ts
- fs
- getFixtures
- helpers
- jest-worker
- makeWatchRunner
- minimize
- minimize.ts
- os
- parseInput
- parseLanguage
- parseSourceType
- path
- process
- readline
- report
- reporter.ts
- runner-watch.ts
- runner-worker.ts
- typescript
- update
- watchSrc
- yargs
Source
Frequently Asked Questions
What does runner.ts do?
runner.ts is a source file in the react codebase, written in typescript. It belongs to the BabelCompiler domain, Optimization subdomain.
What functions are defined in runner.ts?
runner.ts defines 5 function(s): onChange, runCompileCommand, runFixtures, runMinimizeCommand, runTestCommand.
What does runner.ts depend on?
runner.ts imports 32 module(s): RunnerAction, RunnerState, TestFilter, TestResult, TestResults, chalk, child_process, compiler.ts, and 24 more.
Where is runner.ts in the architecture?
runner.ts is located at compiler/packages/snap/src/runner.ts (domain: BabelCompiler, subdomain: Optimization, directory: compiler/packages/snap/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free