(files)
| 26 | } |
| 27 | |
| 28 | function getFilePathPrefix(files) { |
| 29 | if (files.length === 1) { // eslint-disable-line unicorn/prefer-ternary |
| 30 | // Get the correct prefix up to the basename. |
| 31 | return commonPathPrefix([files[0], path.dirname(files[0])]); |
| 32 | } |
| 33 | |
| 34 | return commonPathPrefix(files); |
| 35 | } |
| 36 | |
| 37 | class TimeoutTrigger { |
| 38 | constructor(fn, waitMs = 0) { |