mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +08:00
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>
16 lines
391 B
Plaintext
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" ]
|
|
}
|