Home / Function/ exitWithCode() — react Function Reference

exitWithCode() — react Function Reference

Architecture documentation for the exitWithCode() function in run_devtools_e2e_tests.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  3adf197f_a59b_1c37_d94a_1af13936d213["exitWithCode()"]
  78a11329_415e_c941_dd54_1e297b28e203["run_devtools_e2e_tests.js"]
  3adf197f_a59b_1c37_d94a_1af13936d213 -->|defined in| 78a11329_415e_c941_dd54_1e297b28e203
  19d9ee7b_a1d8_275c_f5ea_2c281b50fe99["buildInlinePackage()"]
  19d9ee7b_a1d8_275c_f5ea_2c281b50fe99 -->|calls| 3adf197f_a59b_1c37_d94a_1af13936d213
  42885c2a_96a4_eff2_6f22_422526901e2f["runTestShell()"]
  42885c2a_96a4_eff2_6f22_422526901e2f -->|calls| 3adf197f_a59b_1c37_d94a_1af13936d213
  b2823440_ebe2_7146_7acd_d71cb37e21ea["runEndToEndTests()"]
  b2823440_ebe2_7146_7acd_d71cb37e21ea -->|calls| 3adf197f_a59b_1c37_d94a_1af13936d213
  35615c69_e215_2b70_48c1_28968c6ef1e3["logBright()"]
  3adf197f_a59b_1c37_d94a_1af13936d213 -->|calls| 35615c69_e215_2b70_48c1_28968c6ef1e3
  28aa116e_e9ec_a7a6_5770_77a1c33f5403["logError()"]
  3adf197f_a59b_1c37_d94a_1af13936d213 -->|calls| 28aa116e_e9ec_a7a6_5770_77a1c33f5403
  style 3adf197f_a59b_1c37_d94a_1af13936d213 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/ci/run_devtools_e2e_tests.js lines 169–198

function exitWithCode(code) {
  if (buildProcess !== null) {
    try {
      logBright('Shutting down build process');
      buildProcess.kill();
    } catch (error) {
      logError(error);
    }
  }

  if (serverProcess !== null) {
    try {
      logBright('Shutting down shell server process');
      serverProcess.kill();
    } catch (error) {
      logError(error);
    }
  }

  if (testProcess !== null) {
    try {
      logBright('Shutting down test process');
      testProcess.kill();
    } catch (error) {
      logError(error);
    }
  }

  process.exit(code);
}

Domain

Subdomains

Frequently Asked Questions

What does exitWithCode() do?
exitWithCode() is a function in the react codebase, defined in scripts/ci/run_devtools_e2e_tests.js.
Where is exitWithCode() defined?
exitWithCode() is defined in scripts/ci/run_devtools_e2e_tests.js at line 169.
What does exitWithCode() call?
exitWithCode() calls 2 function(s): logBright, logError.
What calls exitWithCode()?
exitWithCode() is called by 3 function(s): buildInlinePackage, runEndToEndTests, runTestShell.

Analyze Your Own Codebase

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

Try Supermodel Free