mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
A node runner that bootstraps `fixtures/app`, and then uses `chrome-devtools` CLI to test third-party tools. ``` $ node e2e/run.js Starting fixture at http://127.0.0.1:60033/ Starting chrome-devtools daemon... Checking third-party tool discovery... Checking tree, details, search, and DOM lookup... Checking source, owners, and error payloads... Checking profiling through a real CLI click... react-devtools-cdt-mcp E2E passed. ✨ Done in 11.66s. ```
24 lines
528 B
JavaScript
24 lines
528 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
require('@babel/register')({
|
|
babelrc: false,
|
|
configFile: false,
|
|
extensions: ['.js'],
|
|
only: [__dirname],
|
|
plugins: ['@babel/plugin-transform-flow-strip-types'],
|
|
});
|
|
|
|
require('./run.flow')
|
|
.main()
|
|
.catch(error => {
|
|
process.stderr.write(`${error.stack || error.message}\n`);
|
|
process.exitCode = 1;
|
|
});
|