run() — react Function Reference
Architecture documentation for the run() function in test-packaging-fixture.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4d5d8e17_4bbe_e89e_c0ad_83bcbec2aff4["run()"] d3da9d25_064f_bc58_95af_3d33b89b6cc8["test-packaging-fixture.js"] 4d5d8e17_4bbe_e89e_c0ad_83bcbec2aff4 -->|defined in| d3da9d25_064f_bc58_95af_3d33b89b6cc8 dbb3a8e1_cbaa_5d6a_cbab_2557acc6e740["validate()"] 4d5d8e17_4bbe_e89e_c0ad_83bcbec2aff4 -->|calls| dbb3a8e1_cbaa_5d6a_cbab_2557acc6e740 style 4d5d8e17_4bbe_e89e_c0ad_83bcbec2aff4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/shared-commands/test-packaging-fixture.js lines 43–75
const run = async ({cwd}) => {
await logPromise(
exec('node build-all.js', {cwd: join(cwd, 'fixtures/packaging')}),
'Generating "packaging" fixture',
20000 // This takes roughly 20 seconds
);
let errorMessage;
let response;
try {
response = server.start({
port: 9000,
directory: cwd,
});
errorMessage = await logPromise(
validate(),
'Verifying "packaging" fixture'
);
} finally {
response.close();
}
if (errorMessage) {
console.error(
theme.error('✗'),
'Verifying "packaging" fixture\n ',
theme.error(errorMessage)
);
process.exit(1);
}
};
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does run() do?
run() is a function in the react codebase, defined in scripts/release/shared-commands/test-packaging-fixture.js.
Where is run() defined?
run() is defined in scripts/release/shared-commands/test-packaging-fixture.js at line 43.
What does run() call?
run() calls 1 function(s): validate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free