MCPcopy Index your code
hub / github.com/react/react / buildAndTestExtensions

Function buildAndTestExtensions

scripts/devtools/build-and-test.js:78–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78async function buildAndTestExtensions() {
79 const extensionsPackagePath = join(
80 ROOT_PATH,
81 'packages',
82 'react-devtools-extensions'
83 );
84 const buildExtensionsPromise = exec('yarn build', {
85 cwd: extensionsPackagePath,
86 });
87
88 await logger(
89 buildExtensionsPromise,
90 `Building browser extensions ${chalk.dim('(this may take a minute)')}`,
91 {
92 estimate: 60000,
93 }
94 );
95
96 console.log('');
97 console.log(`Extensions have been build for Chrome, Edge, and Firefox.`);
98 console.log('');
99 console.log('Smoke test each extension before continuing:');
100 console.log(` ${chalk.bold.green('cd ' + extensionsPackagePath)}`);
101 console.log('');
102 console.log(` ${chalk.dim('# Test Chrome extension')}`);
103 console.log(` ${chalk.bold.green('yarn test:chrome')}`);
104 console.log('');
105 console.log(` ${chalk.dim('# Test Edge extension')}`);
106 console.log(` ${chalk.bold.green('yarn test:edge')}`);
107 console.log('');
108 console.log(` ${chalk.dim('# Firefox Chrome extension')}`);
109 console.log(` ${chalk.bold.green('yarn test:firefox')}`);
110
111 await confirmContinue();
112}
113
114async function buildAndTestStandalonePackage() {
115 const corePackagePath = join(ROOT_PATH, 'packages', 'react-devtools-core');

Callers 1

mainFunction · 0.85

Calls 3

execFunction · 0.85
loggerFunction · 0.85
confirmContinueFunction · 0.85

Tested by

no test coverage detected