mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
As part of the work to enable Puppeteer component tests, we need to configure the test suite to run either the hosted mode server or the component docs server. This CL updates it to take a flag, and makes some updates to the component docs server, which now has to run either directly or in the out/Default/gen directory depending on how it is run. I suspect I'll make a follow up CL to always run the component server in out/Default/gen, but for now enabling it to detect its context is the quickest way to unblock running it in tests. The next CL will add a component test suite that can run a basic test against the component doc server, but I have manually verified locally that I can run tests against that server. Bug: 1153281 Change-Id: I55bda4edd0a983d03bfecff0446b0f3e3a008b52 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562707 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
10 lines
262 B
Plaintext
10 lines
262 B
Plaintext
# Copyright 2020 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("../build/ninja/copy.gni")
|
|
|
|
copy_to_gen("component_server") {
|
|
sources = [ "server.js" ]
|
|
}
|