Files
react-native-devtools-frontend/test/screenshots/test-list.ts
T
Mathias Bynens 7d37f41b39 Simplify test lists
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>
2020-03-20 13:31:12 +00:00

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);
});