runEndToEndTests() — react Function Reference
Architecture documentation for the runEndToEndTests() function in run_devtools_e2e_tests.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD b2823440_ebe2_7146_7acd_d71cb37e21ea["runEndToEndTests()"] 78a11329_415e_c941_dd54_1e297b28e203["run_devtools_e2e_tests.js"] b2823440_ebe2_7146_7acd_d71cb37e21ea -->|defined in| 78a11329_415e_c941_dd54_1e297b28e203 42885c2a_96a4_eff2_6f22_422526901e2f["runTestShell()"] 42885c2a_96a4_eff2_6f22_422526901e2f -->|calls| b2823440_ebe2_7146_7acd_d71cb37e21ea 35615c69_e215_2b70_48c1_28968c6ef1e3["logBright()"] b2823440_ebe2_7146_7acd_d71cb37e21ea -->|calls| 35615c69_e215_2b70_48c1_28968c6ef1e3 6253ba5c_423a_138c_ef31_f8322f5c5131["format()"] b2823440_ebe2_7146_7acd_d71cb37e21ea -->|calls| 6253ba5c_423a_138c_ef31_f8322f5c5131 3adf197f_a59b_1c37_d94a_1af13936d213["exitWithCode()"] b2823440_ebe2_7146_7acd_d71cb37e21ea -->|calls| 3adf197f_a59b_1c37_d94a_1af13936d213 style b2823440_ebe2_7146_7acd_d71cb37e21ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/ci/run_devtools_e2e_tests.js lines 125–167
async function runEndToEndTests() {
logBright('Running e2e tests');
if (!reactVersion) {
testProcess = spawn(
'yarn',
['test:e2e', `--output=${playwrightArtifactsPath}`],
{
cwd: inlinePackagePath,
}
);
} else {
testProcess = spawn(
'yarn',
['test:e2e', `--output=${playwrightArtifactsPath}`],
{
cwd: inlinePackagePath,
env: {...process.env, REACT_VERSION: reactVersion},
}
);
}
testProcess.stdout.on('data', data => {
// Log without formatting because Playwright applies its own formatting.
const formatted = format(data);
if (formatted !== '') {
console.log(formatted);
}
});
testProcess.stderr.on('data', data => {
// Log without formatting because Playwright applies its own formatting.
const formatted = format(data);
if (formatted !== '') {
console.error(formatted);
}
exitWithCode(1);
});
testProcess.on('close', code => {
logBright(`Tests completed with code: ${code}`);
exitWithCode(code);
});
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does runEndToEndTests() do?
runEndToEndTests() is a function in the react codebase, defined in scripts/ci/run_devtools_e2e_tests.js.
Where is runEndToEndTests() defined?
runEndToEndTests() is defined in scripts/ci/run_devtools_e2e_tests.js at line 125.
What does runEndToEndTests() call?
runEndToEndTests() calls 3 function(s): exitWithCode, format, logBright.
What calls runEndToEndTests()?
runEndToEndTests() is called by 1 function(s): runTestShell.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free