Files
react-native-devtools-frontend/test/shared/BUILD.gn
T
Peter Marshall 4cafd236c0 tests: Add an it.repeat() helper
it.repeat() is helpful for fixing flaky tests.

Along with repeat, we also have the async tracing which is very helpful
for debugging tests that timeout due to hanging async operations. We
want to make all of these helpers available by default.

This CL introduces a new file mocha-extensions and adds both of these
customizations to the default mocha operations and then re-exports them.

In the future, all tests will import from mocha-extensions instead to
get these extensions by default. We will add lint rules to ensure that
callers don't import from mocha directly and miss out on these.

Bug: 1101782
Change-Id: I15dbb71493e60064288bfc050ac3f818a5c6821f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2339319
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
2020-08-14 09:10:47 +00:00

16 lines
391 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("../../third_party/typescript/typescript.gni")
node_ts_library("shared") {
sources = [
"config.ts",
"helper.ts",
"mocha-extensions.ts",
"text-color.ts",
]
deps = [ "../conductor:implementation" ]
}