runTests() — react Function Reference
Architecture documentation for the runTests() function in enable-feature-flag.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 77ee9936_13cc_cf59_df6b_00e1447cdfc5["runTests()"] fdb06a3a_b735_af93_2b10_31380c21c8b7["enable-feature-flag.js"] 77ee9936_13cc_cf59_df6b_00e1447cdfc5 -->|defined in| fdb06a3a_b735_af93_2b10_31380c21c8b7 8b10b33c_dacb_5e2f_27fa_87868d6869cc["verifyAllTestsPass()"] 8b10b33c_dacb_5e2f_27fa_87868d6869cc -->|calls| 77ee9936_13cc_cf59_df6b_00e1447cdfc5 ab68ec04_512e_f89e_9e49_ae73608023f0["main()"] ab68ec04_512e_f89e_9e49_ae73608023f0 -->|calls| 77ee9936_13cc_cf59_df6b_00e1447cdfc5 style 77ee9936_13cc_cf59_df6b_00e1447cdfc5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/scripts/enable-feature-flag.js lines 115–130
function runTests() {
console.log('\nRunning test suite (yarn snap)...');
try {
const output = execSync('yarn snap', {
cwd: COMPILER_ROOT,
encoding: 'utf8',
stdio: 'pipe',
maxBuffer: 10 * 1024 * 1024, // 10MB buffer
});
return {success: true, output};
} catch (error) {
// yarn snap exits with code 1 when tests fail, which throws an error
return {success: false, output: error.stdout || error.message};
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does runTests() do?
runTests() is a function in the react codebase, defined in compiler/scripts/enable-feature-flag.js.
Where is runTests() defined?
runTests() is defined in compiler/scripts/enable-feature-flag.js at line 115.
What calls runTests()?
runTests() is called by 2 function(s): main, verifyAllTestsPass.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free