mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 20:39:31 +08:00
This CL makes the manually-maintained test lists easier to change, since paths can now be used directly instead of manually `path.join()`ing each component. This is cross-platform compatible because in Node.js, `path.join()` normalizes the resulting path per [1]. [1]: https://nodejs.org/api/path.html#path_path_join_paths Change-Id: I342da3a7a8957ae6d765ed627af55d60f4a3baa2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2108154 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org>
14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
// 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 {join} from 'path';
|
|
|
|
const tests = [
|
|
'hello-world/hello-world.js',
|
|
];
|
|
|
|
export const testList = tests.map(testPath => {
|
|
return join(__dirname, testPath);
|
|
});
|