function setup
setup(inputs: string[]): string[]

Deduplicates a list of file, folder, and glob inputs so that more-specific paths covered by broader ones are removed.

import * as TestFilePaths from './test-file-paths.ts';

TestFilePaths.setup(['/proj/test', '/proj/test/unit/cart-test.ts', '/proj/lib/util-test.ts']);
// ['/proj/test', '/proj/lib/util-test.ts'] — the folder already covers the nested file

Parameters

inputs: string[]

Return Type

string[]

Usage

import { setup } from "lib/setup/test-file-paths.ts";